mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Fixes #2809
This commit is contained in:
parent
7ddd0469eb
commit
9e83b4af00
@ -34,6 +34,7 @@
|
|||||||
#### Fixes
|
#### Fixes
|
||||||
* Fixed #2794
|
* Fixed #2794
|
||||||
* Fixed #2793
|
* Fixed #2793
|
||||||
|
* Fixed #2809
|
||||||
* Fixed a small exception which gets thrown when Slimefun is disabled due to an invalid environment
|
* Fixed a small exception which gets thrown when Slimefun is disabled due to an invalid environment
|
||||||
|
|
||||||
## Release Candidate 20 (30 Jan 2021)
|
## Release Candidate 20 (30 Jan 2021)
|
||||||
|
@ -62,8 +62,13 @@ public class MultiBlockListener implements Listener {
|
|||||||
e.setCancelled(true);
|
e.setCancelled(true);
|
||||||
|
|
||||||
MultiBlock mb = multiblocks.getLast();
|
MultiBlock mb = multiblocks.getLast();
|
||||||
|
MultiBlockInteractEvent event = new MultiBlockInteractEvent(p, mb, b, e.getBlockFace());
|
||||||
|
Bukkit.getPluginManager().callEvent(event);
|
||||||
|
|
||||||
|
// Fixes #2809
|
||||||
|
if (!event.isCancelled()) {
|
||||||
mb.getSlimefunItem().callItemHandler(MultiBlockInteractionHandler.class, handler -> handler.onInteract(p, mb, b));
|
mb.getSlimefunItem().callItemHandler(MultiBlockInteractionHandler.class, handler -> handler.onInteract(p, mb, b));
|
||||||
Bukkit.getPluginManager().callEvent(new MultiBlockInteractEvent(p, mb, b, e.getBlockFace()));
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user