mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-26 12:35:28 +01:00
fix for #940 (stripping logs are respected as block place actions)
This commit is contained in:
parent
c8bb020587
commit
8aff873a5b
@ -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