aboutsummaryrefslogtreecommitdiff
path: root/features/nether/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'features/nether/index.js')
-rw-r--r--features/nether/index.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/features/nether/index.js b/features/nether/index.js
index 0d84003..d63cf0e 100644
--- a/features/nether/index.js
+++ b/features/nether/index.js
@@ -55,7 +55,12 @@ class Nether extends Feature {
this.disciplineOverlay = new ToggleSetting("Show overlay for zombies in dojo discipline", "", true, "dojo_discipline", this).contributor("Empa")
this.hostageWaypoints = new ToggleSetting("Show hostage waypoints", "Waypoint for location of hostage in rescue missions", true, "hostage_waypoint", this)
this.slugfishTimer = new ToggleSetting("Show timer over rod", "This may help with fishing slugfish", false, "slugfish_timer", this)
- this.registerCustom("packetReceived", this.packetReceived).registeredWhen(() => this.isInDojo())
+ let packetRecieved = this.registerCustom("packetReceived", this.packetReceived).registeredWhen(() => this.isInDojo())
+
+ try {
+ packetRecieved.trigger.setPacketClasses([net.minecraft.network.play.server.S23PacketBlockChange, net.minecraft.network.play.server.S22PacketMultiBlockChange])
+ } catch (e) { }//older ct version
+
this.registerStep(true, 1, this.step1S).registeredWhen(() => this.isInNether())
this.registerEvent("renderWorld", this.renderWorld).registeredWhen(() => this.isInNether())