mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-24 03:25:24 +01:00
Don't throw an internal block break event when lighting TNT.
This commit is contained in:
parent
cab42af53b
commit
ff3fa759d1
@ -234,14 +234,6 @@ public void onPlayerInteract(PlayerInteractEvent event) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Special handling of flint and steel on TNT
|
|
||||||
if (clicked.getType() == Material.TNT && item != null && item.getType() == Material.FLINT_AND_STEEL) {
|
|
||||||
if (Events.fireAndTestCancel(new BreakBlockEvent(event, create(event.getPlayer()), clicked))) {
|
|
||||||
event.setUseInteractedBlock(Result.DENY);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Special handling of putting out fires
|
// Special handling of putting out fires
|
||||||
|
Loading…
Reference in New Issue
Block a user