Skip to content

Commit d4a712d

Browse files
committed
[CI-SKIP] Remove unused import from last patch
1 parent a9ee104 commit d4a712d

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

patches/server/0892-Prevent-tile-entity-copies-loading-chunks.patch

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,14 @@ Subject: [PATCH] Prevent tile entity copies loading chunks
55

66

77
diff --git a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
8-
index e4d54fdc28b6161e74626f25299b1081e6605e98..3ab4ecb9ee3586cab04da7b500024855892faa3e 100644
8+
index e4d54fdc28b6161e74626f25299b1081e6605e98..7eeb9b5482ed7933c42cdd84936460e93585c584 100644
99
--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
1010
+++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
11-
@@ -1,5 +1,6 @@
12-
package net.minecraft.server.network;
13-
14-
+import com.destroystokyo.paper.event.player.IllegalPacketEvent;
15-
import com.google.common.collect.Lists;
16-
import com.google.common.primitives.Floats;
17-
import com.mojang.brigadier.ParseResults;
18-
@@ -2994,8 +2995,17 @@ public class ServerGamePacketListenerImpl implements ServerPlayerConnection, Ser
11+
@@ -2994,7 +2994,17 @@ public class ServerGamePacketListenerImpl implements ServerPlayerConnection, Ser
1912

2013
if (!itemstack.isEmpty() && nbttagcompound != null && nbttagcompound.contains("x") && nbttagcompound.contains("y") && nbttagcompound.contains("z") && this.player.getBukkitEntity().hasPermission("minecraft.nbt.copy")) { // Spigot
2114
BlockPos blockposition = BlockEntity.getPosFromTag(nbttagcompound);
2215
- BlockEntity tileentity = this.player.level.getBlockEntity(blockposition);
23-
-
2416
+ // Paper start
2517
+ BlockEntity tileentity = null;
2618
+ if (this.player.getLevel().isLoadedAndInBounds(blockposition)) {
@@ -32,6 +24,6 @@ index e4d54fdc28b6161e74626f25299b1081e6605e98..3ab4ecb9ee3586cab04da7b500024855
3224
+ nbttagcompound.remove("z");
3325
+ }
3426
+ // Paper end
27+
3528
if (tileentity != null) {
3629
tileentity.saveToItem(itemstack);
37-
}

0 commit comments

Comments
 (0)