mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-06 16:27:59 +01:00
commit
3652fe5d1b
@ -423,6 +423,10 @@ public class JobsPaymentListener implements Listener {
|
|||||||
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||||
public void onBlockPlace(BlockPlaceEvent event) {
|
public void onBlockPlace(BlockPlaceEvent event) {
|
||||||
|
// A tool should not trigger a BlockPlaceEvent (fixes stripping logs bug #940)
|
||||||
|
if (CMIMaterial.get(event.getItemInHand().getType()).isTool())
|
||||||
|
return;
|
||||||
|
|
||||||
Block block = event.getBlock();
|
Block block = event.getBlock();
|
||||||
|
|
||||||
//disabling plugin in world
|
//disabling plugin in world
|
||||||
|
Loading…
Reference in New Issue
Block a user