aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/handlers/PacketHandler.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-12-07 19:00:24 -0500
committerGitHub <noreply@github.com>2020-12-07 19:00:24 -0500
commit0bd7c6336f5866ea5513f85a3cedf5c48e375ab2 (patch)
treec28066f2d9f819f57c42d8911f1e0046f48cdf60 /src/main/java/me/Danker/handlers/PacketHandler.java
parent886402bdcd8d68e6d1076c86d53baab47070dd63 (diff)
parentc5e8044e39f784798000b64bbece05eae0282d86 (diff)
downloadSkyblockMod-0bd7c6336f5866ea5513f85a3cedf5c48e375ab2.tar.gz
SkyblockMod-0bd7c6336f5866ea5513f85a3cedf5c48e375ab2.tar.bz2
SkyblockMod-0bd7c6336f5866ea5513f85a3cedf5c48e375ab2.zip
1.8.4v1.8.4
Merge pull request #42 from bowser0000/development
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;
}