Commit 068fd29a authored by Linus K.'s avatar Linus K.
Browse files

Reduce coordhud updates

parent 95d859d1
Pipeline #133 passed with stage
in 42 seconds
......@@ -23,7 +23,9 @@ class CoordHudListener: Listener {
@EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR)
fun onMove(e: PlayerMoveEvent) {
if(e.player.uniqueId in CoordHudCommand.COORD_HUD_ENABLED)
if(e.to == null) return
if(e.from.blockX == e.to!!.blockX && e.from.blockY == e.to!!.blockY && e.from.blockZ == e.to!!.blockZ) return
if (e.player.uniqueId in CoordHudCommand.COORD_HUD_ENABLED)
CoordHudCommand.updateCoordHud(e.player, e.to!!)
}
......
......@@ -16,7 +16,7 @@
<maven.compiler.target>1.8</maven.compiler.target>
<revision>0.1.0-SNAPSHOT</revision>
<mcplugins.autosyston.version>0.4.0</mcplugins.autosyston.version>
<mcplugins.autosyston.version>0.4.1</mcplugins.autosyston.version>
<mcplugins.kotlin.version>1.0.0</mcplugins.kotlin.version>
<mcplugins.teleportastic.version>0.4.3</mcplugins.teleportastic.version>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment