aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/handlers/PacketHandler.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2021-04-02 17:26:21 -0400
committerbowser0000 <bowser0000@gmail.com>2021-04-02 17:26:21 -0400
commitdf1f83cf4ddb80969d2086cf1d7a86df9dc90653 (patch)
tree5dde5a1bf277e779f23e3476187227e2671b5944 /src/main/java/me/Danker/handlers/PacketHandler.java
parent032cbaea86a08b98a239257f464a00a925068fda (diff)
downloadSkyblockMod-df1f83cf4ddb80969d2086cf1d7a86df9dc90653.tar.gz
SkyblockMod-df1f83cf4ddb80969d2086cf1d7a86df9dc90653.tar.bz2
SkyblockMod-df1f83cf4ddb80969d2086cf1d7a86df9dc90653.zip
Remove features
Remove blocking starting wrong slayer quest Remove blocking using abilities Remove placing flower weapons Remove blocking misclicks in solvers Remove F7 arrow terminal solver
Diffstat (limited to 'src/main/java/me/Danker/handlers/PacketHandler.java')
-rw-r--r--src/main/java/me/Danker/handlers/PacketHandler.java31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/main/java/me/Danker/handlers/PacketHandler.java b/src/main/java/me/Danker/handlers/PacketHandler.java
index da7900a..a4fd85e 100644
--- a/src/main/java/me/Danker/handlers/PacketHandler.java
+++ b/src/main/java/me/Danker/handlers/PacketHandler.java
@@ -2,19 +2,10 @@ package me.Danker.handlers;
import io.netty.channel.ChannelDuplexHandler;
import io.netty.channel.ChannelHandlerContext;
-import io.netty.channel.ChannelPromise;
-import me.Danker.commands.ToggleCommand;
import me.Danker.utils.Utils;
import net.minecraft.client.Minecraft;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.item.EntityItemFrame;
-import net.minecraft.init.Blocks;
-import net.minecraft.init.Items;
-import net.minecraft.item.ItemStack;
import net.minecraft.network.Packet;
-import net.minecraft.network.play.client.C02PacketUseEntity;
import net.minecraft.network.play.server.S04PacketEntityEquipment;
-import net.minecraft.util.BlockPos;
import java.lang.reflect.Field;
@@ -36,26 +27,4 @@ public class PacketHandler extends ChannelDuplexHandler {
super.channelRead(ctx, msg);
}
- // Ignore item frames with arrows on sea lanterns
- @Override
- public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {
- if (ToggleCommand.itemFrameOnSeaLanternsToggled && Utils.inDungeons && msg instanceof Packet && msg.getClass().getName().endsWith("C02PacketUseEntity")) {
- Minecraft mc = Minecraft.getMinecraft();
- C02PacketUseEntity packet = (C02PacketUseEntity) msg;
- Entity entityHit = packet.getEntityFromWorld(mc.theWorld);
- if (entityHit instanceof EntityItemFrame) {
- EntityItemFrame itemFrame = (EntityItemFrame) entityHit;
- ItemStack item = itemFrame.getDisplayedItem();
- if (item != null && item.getItem() == Items.arrow) {
- BlockPos blockPos = Utils.getBlockUnderItemFrame(itemFrame);
- if (mc.theWorld.getBlockState(blockPos).getBlock() == Blocks.sea_lantern) {
- return;
- }
- }
- }
- }
-
- super.write(ctx, msg, promise);
- }
-
}