Workaround for sign dying issue.

Signs still get dyed even if you deny using dye.
This commit is contained in:
wizjany 2019-07-03 09:50:42 -04:00
parent ab7751e046
commit 35e0db36d3

View File

@ -434,6 +434,7 @@ public void onPlayerInteract(PlayerInteractEvent event) {
if (hasItemInteraction) {
if (Events.fireAndTestCancel(new PlaceBlockEvent(event, cause, clicked.getLocation(), clicked.getType()))) {
event.setUseItemInHand(Result.DENY);
event.setUseInteractedBlock(Result.DENY);
}
}