Skip to content

Commit bdde20a

Browse files
committed
reduce diff
1 parent cb7de08 commit bdde20a

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

paper-server/patches/sources/net/minecraft/commands/Commands.java.patch

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,6 @@
102102
StackTraceElement[] stackTrace = var12.getStackTrace();
103103

104104
for (int i = 0; i < Math.min(stackTrace.length, 3); i++) {
105-
@@ -356,7 +_,8 @@
106-
}
107-
}
108-
109-
- private static @Nullable ContextChain<CommandSourceStack> finishParsing(
110-
+
111-
+ private ContextChain<CommandSourceStack> finishParsing(
112-
ParseResults<CommandSourceStack> parseResults, String command, CommandSourceStack source
113-
) {
114-
try {
115105
@@ -364,7 +_,11 @@
116106
return ContextChain.tryFlatten(parseResults.getContext().build(command))
117107
.orElseThrow(() -> CommandSyntaxException.BUILT_IN_EXCEPTIONS.dispatcherUnknownCommand().createWithContext(parseResults.getReader()));

paper-server/patches/sources/net/minecraft/world/level/block/NetherPortalBlock.java.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
entity.setAsInsidePortal(this, pos);
3939
}
4040
}
41-
@@ -126,23 +_,46 @@
41+
@@ -126,23 +_,47 @@
4242

4343
@Override
4444
public @Nullable TeleportTransition getPortalDestination(ServerLevel level, Entity entity, BlockPos pos) {
@@ -84,9 +84,9 @@
8484

8585
private @Nullable TeleportTransition getExitPortal(
8686
- ServerLevel level, Entity entity, BlockPos pos, BlockPos exitPos, boolean isNether, WorldBorder worldBorder
87-
- ) {
87+
+ ServerLevel level, Entity entity, BlockPos pos, BlockPos exitPos, WorldBorder worldBorder, org.bukkit.craftbukkit.event.PortalEventResult result // CraftBukkit
88+
) {
8889
- Optional<BlockPos> optional = level.getPortalForcer().findClosestPortalPosition(exitPos, isNether, worldBorder);
89-
+ ServerLevel level, Entity entity, BlockPos pos, BlockPos exitPos, WorldBorder worldBorder, org.bukkit.craftbukkit.event.PortalEventResult result) { // CraftBukkit
9090
+ Optional<BlockPos> optional = level.getPortalForcer().findClosestPortalPosition(exitPos, worldBorder, result.searchRadius()); // CraftBukkit
9191
BlockUtil.FoundRectangle largestRectangleAround;
9292
TeleportTransition.PostTeleportTransition postTeleportTransition;

0 commit comments

Comments
 (0)