diff options
author | BuildTools <james.jenour@protonmail.com> | 2021-02-05 07:38:49 +0800 |
---|---|---|
committer | BuildTools <james.jenour@protonmail.com> | 2021-02-05 07:38:49 +0800 |
commit | 05ecb9ec0980fbf3eb074deb021d6b06172b8fd2 (patch) | |
tree | 652c66a16e1bb97c895f5cceb0b5862fdf4b4373 /src/main/java | |
parent | c40f8e737c62c8dadef294f8621716529d354796 (diff) | |
download | NotEnoughUpdates-05ecb9ec0980fbf3eb074deb021d6b06172b8fd2.tar.gz NotEnoughUpdates-05ecb9ec0980fbf3eb074deb021d6b06172b8fd2.tar.bz2 NotEnoughUpdates-05ecb9ec0980fbf3eb074deb021d6b06172b8fd2.zip |
PRE16
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java | 4 | ||||
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FlyFix.java | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java b/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java index f77279b0..d1a60e39 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java @@ -664,9 +664,7 @@ public class NotEnoughUpdates { SimpleCommand dhCommand = new SimpleCommand("dh", new SimpleCommand.ProcessCommandRunnable() { @Override public void processCommand(ICommandSender sender, String[] args) { - //Minecraft.getMinecraft().thePlayer.sendChatMessage("/warp dungeon_hub"); - Minecraft.getMinecraft().thePlayer.capabilities.isFlying = !Minecraft.getMinecraft().thePlayer.capabilities.isFlying; - Minecraft.getMinecraft().thePlayer.sendQueue.addToSendQueue(new C13PacketPlayerAbilities(Minecraft.getMinecraft().thePlayer.capabilities)); + Minecraft.getMinecraft().thePlayer.sendChatMessage("/warp dungeon_hub"); } }); diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FlyFix.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FlyFix.java index 9ccaff31..5e8d0742 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FlyFix.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FlyFix.java @@ -13,6 +13,7 @@ public class FlyFix { private static long lastAbilitySend = 0; public static void onSendAbilities(C13PacketPlayerAbilities packet) { + if(true) return; if(!NotEnoughUpdates.INSTANCE.config.misc.flyFix) return; if(Minecraft.getMinecraft().thePlayer == null) return; if(!Minecraft.getMinecraft().thePlayer.capabilities.allowFlying) return; @@ -27,6 +28,7 @@ public class FlyFix { } public static void onReceiveAbilities(S39PacketPlayerAbilities packet) { + if(true) return; if(!NotEnoughUpdates.INSTANCE.config.misc.flyFix) return; if(Minecraft.getMinecraft().thePlayer == null) return; if(!Minecraft.getMinecraft().thePlayer.capabilities.allowFlying) return; @@ -47,6 +49,7 @@ public class FlyFix { } public static void tick() { + if(true) return; if(!NotEnoughUpdates.INSTANCE.config.misc.flyFix) return; if(Minecraft.getMinecraft().thePlayer == null) return; if(!Minecraft.getMinecraft().thePlayer.capabilities.allowFlying) return; |