mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-09-27 14:12:59 +02: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;
|
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)
|
@EventHandler(priority = EventPriority.HIGHEST)
|
||||||
public void onBlockInteract(PlayerInteractEvent event) {
|
public void onBlockInteract(PlayerInteractEvent event) {
|
||||||
if (event.useInteractedBlock() == Event.Result.DENY) return;
|
if (event.useInteractedBlock() == Event.Result.DENY) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user