Removed laggy unused method.

This commit is contained in:
Brianna O'Keefe 2019-02-07 19:14:21 -05:00
parent 1b0699840b
commit ecc75d13cc

View File

@ -52,31 +52,6 @@ public class InteractListeners implements Listener {
}
}
@EventHandler
public void onMoveChunk(PlayerMoveEvent e) {
updateHopper(e.getFrom().getChunk(), e.getTo().getChunk());
}
@EventHandler
public void onTeleport(PlayerTeleportEvent e) {
updateHopper(e.getFrom().getChunk(), e.getTo().getChunk());
}
private void updateHopper(Chunk from, Chunk to) {
if (from == to) return;
for (Hopper hopper : instance.getHopperManager().getHoppers().values()) {
Location location = hopper.getLocation();
int x = location.getBlockX() >> 4;
int z = location.getBlockZ() >> 4;
if (location.getWorld().getChunkAt(x, z) == to) {
((EHopper) hopper).reloadHopper();
}
}
}
@EventHandler
public void onBlockInteract(PlayerInteractEvent e) {
try {