mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
[CI-SKIP] Remove unused import from last patch
This commit is contained in:
parent
d8d6fd17fd
commit
a072a15667
1 changed files with 1 additions and 9 deletions
|
@ -8,19 +8,11 @@ diff --git a/src/main/java/net/minecraft/server/network/ServerGamePacketListener
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
||||||
+++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
+++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
||||||
@@ -0,0 +0,0 @@
|
|
||||||
package net.minecraft.server.network;
|
|
||||||
|
|
||||||
+import com.destroystokyo.paper.event.player.IllegalPacketEvent;
|
|
||||||
import com.google.common.collect.Lists;
|
|
||||||
import com.google.common.primitives.Floats;
|
|
||||||
import com.mojang.brigadier.ParseResults;
|
|
||||||
@@ -0,0 +0,0 @@ public class ServerGamePacketListenerImpl implements ServerPlayerConnection, Ser
|
@@ -0,0 +0,0 @@ public class ServerGamePacketListenerImpl implements ServerPlayerConnection, Ser
|
||||||
|
|
||||||
if (!itemstack.isEmpty() && nbttagcompound != null && nbttagcompound.contains("x") && nbttagcompound.contains("y") && nbttagcompound.contains("z") && this.player.getBukkitEntity().hasPermission("minecraft.nbt.copy")) { // Spigot
|
if (!itemstack.isEmpty() && nbttagcompound != null && nbttagcompound.contains("x") && nbttagcompound.contains("y") && nbttagcompound.contains("z") && this.player.getBukkitEntity().hasPermission("minecraft.nbt.copy")) { // Spigot
|
||||||
BlockPos blockposition = BlockEntity.getPosFromTag(nbttagcompound);
|
BlockPos blockposition = BlockEntity.getPosFromTag(nbttagcompound);
|
||||||
- BlockEntity tileentity = this.player.level.getBlockEntity(blockposition);
|
- BlockEntity tileentity = this.player.level.getBlockEntity(blockposition);
|
||||||
-
|
|
||||||
+ // Paper start
|
+ // Paper start
|
||||||
+ BlockEntity tileentity = null;
|
+ BlockEntity tileentity = null;
|
||||||
+ if (this.player.getLevel().isLoadedAndInBounds(blockposition)) {
|
+ if (this.player.getLevel().isLoadedAndInBounds(blockposition)) {
|
||||||
|
@ -32,6 +24,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+ nbttagcompound.remove("z");
|
+ nbttagcompound.remove("z");
|
||||||
+ }
|
+ }
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
|
|
||||||
if (tileentity != null) {
|
if (tileentity != null) {
|
||||||
tileentity.saveToItem(itemstack);
|
tileentity.saveToItem(itemstack);
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue