aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/handlers/PacketHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/Danker/handlers/PacketHandler.java')
-rw-r--r--src/main/java/me/Danker/handlers/PacketHandler.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/Danker/handlers/PacketHandler.java b/src/main/java/me/Danker/handlers/PacketHandler.java
index 716b27c..da7900a 100644
--- a/src/main/java/me/Danker/handlers/PacketHandler.java
+++ b/src/main/java/me/Danker/handlers/PacketHandler.java
@@ -1,7 +1,5 @@
package me.Danker.handlers;
-import java.lang.reflect.Field;
-
import io.netty.channel.ChannelDuplexHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelPromise;
@@ -18,6 +16,8 @@ import net.minecraft.network.play.client.C02PacketUseEntity;
import net.minecraft.network.play.server.S04PacketEntityEquipment;
import net.minecraft.util.BlockPos;
+import java.lang.reflect.Field;
+
public class PacketHandler extends ChannelDuplexHandler {
// Spirit boots fix
@@ -47,7 +47,7 @@ public class PacketHandler extends ChannelDuplexHandler {
EntityItemFrame itemFrame = (EntityItemFrame) entityHit;
ItemStack item = itemFrame.getDisplayedItem();
if (item != null && item.getItem() == Items.arrow) {
- BlockPos blockPos = Utils.getBlockUnderItemFrame(mc.theWorld, itemFrame);
+ BlockPos blockPos = Utils.getBlockUnderItemFrame(itemFrame);
if (mc.theWorld.getBlockState(blockPos).getBlock() == Blocks.sea_lantern) {
return;
}