mirror of
https://github.com/songoda/UltimateStacker.git
synced 2025-01-15 20:11:21 +01:00
Revert chunk listener stuff
This commit is contained in:
parent
3eeef59c5f
commit
2d55f3851c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user