mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2025-01-06 19:28:20 +01:00
Don't check isInteractable for slimefun blocks.
This commit is contained in:
parent
ff974c216d
commit
0ac8ad89d8
@ -828,7 +828,14 @@ public void onPlayerInteractBlockSecondary(PlayerInteractEvent event) {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user