Don't check isInteractable for slimefun blocks.

This commit is contained in:
bloodshot 2020-10-29 17:30:10 -04:00
parent ff974c216d
commit 0ac8ad89d8
1 changed files with 8 additions and 1 deletions

View File

@ -828,7 +828,14 @@ public class PlayerEventHandler implements Listener {
final String id = GDPermissionManager.getInstance().getPermissionIdentifier(clickedBlock);
final GDBlockType gdBlock = BlockTypeRegistryModule.getInstance().getById(id).orElse(null);
if (gdBlock == null || (!gdBlock.isInteractable() && event.getAction() != Action.PHYSICAL)) {
return;
if (GriefDefenderPlugin.getInstance().getSlimefunProvider() == null) {
return;
}
final String customBlockId = GriefDefenderPlugin.getInstance().getSlimefunProvider().getSlimeBlockId(clickedBlock);
if (customBlockId == null || customBlockId.isEmpty()) {
return;
}
}
if (NMSUtil.getInstance().isBlockStairs(clickedBlock) && event.getAction() != Action.PHYSICAL) {
return;