Revert chunk listener stuff

This commit is contained in:
ceze88 2023-04-13 17:07:57 +02:00
parent 3eeef59c5f
commit 2d55f3851c
1 changed files with 0 additions and 8 deletions

View File

@ -45,14 +45,6 @@ public class BlockListeners implements Listener {
this.plugin = plugin;
}
@EventHandler
public void onChunkLoad(ChunkLoadEvent event) {
if (!Settings.STACK_BLOCKS.getBoolean()) return;
Chunk chunk = event.getChunk();
BlockStackManager blockStackManager = plugin.getBlockStackManager();
blockStackManager.getStacks().stream().filter(stack -> stack.getLocation().getChunk().equals(chunk)).forEach(plugin::updateHologram);
}
@EventHandler(priority = EventPriority.HIGHEST)
public void onBlockInteract(PlayerInteractEvent event) {
if (event.useInteractedBlock() == Event.Result.DENY) return;