8000 Remove unused warning (#12478) · PaperMC/Paper@a211ac2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit a211ac2

Browse files
authored
Remove unused warning (#12478)
1 parent a112d37 commit a211ac2

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

paper-server/patches/sources/net/minecraft/server/network/ServerGamePacketListenerImpl.java.patch

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,14 +1237,21 @@
12371237
} else {
12381238
Component component1 = Component.translatable("build.tooHigh", maxY).withStyle(ChatFormatting.RED);
12391239
this.player.sendSystemMessage(component1, true);
1240-
@@ -1268,6 +_,7 @@
1240+
@@ -1268,13 +_,7 @@
12411241

12421242
this.player.connection.send(new ClientboundBlockUpdatePacket(serverLevel, blockPos));
12431243
this.player.connection.send(new ClientboundBlockUpdatePacket(serverLevel, blockPos.relative(direction)));
1244+
- } else {
1245+
- LOGGER.warn(
1246+
- "Rejecting UseItemOnPacket from {}: Location {} too far away from hit block {}.",
1247+
- this.player.getGameProfile().getName(),
1248+
- location,
1249+
- blockPos
1250+
- );
12441251
+ if (io.papermc.paper.configuration.GlobalConfiguration.get().unsupportedSettings.updateEquipmentOnPlayerActions) this.player.detectEquipmentUpdates(); // Paper - Force update attributes.
1245-
} else {
1246-
LOGGER.warn(
1247-
"Rejecting UseItemOnPacket from {}: Location {} too far away from hit block {}.",
1252+
}
1253+
}
1254+
}
12481255
@@ -1284,6 +_,8 @@
12491256
@Override
12501257
public void handleUseItem(ServerboundUseItemPacket packet) {

0 commit comments

Comments
 (0)
0