mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Update ProgrammableAndroid.java
This commit is contained in:
parent
86a1960ffd
commit
b322e3a207
@ -216,7 +216,7 @@ public abstract class ProgrammableAndroid extends SlimefunItem {
|
||||
public boolean onBreak(Player p, Block b, SlimefunItem item, UnregisterReason reason) {
|
||||
boolean allow = reason.equals(UnregisterReason.PLAYER_BREAK) && (BlockStorage.getLocationInfo(b.getLocation(), "owner").equals(p.getUniqueId().toString()) || p.hasPermission("slimefun.android.bypass"));
|
||||
|
||||
if (BlockStorage.check(b) != null) return false;
|
||||
if (BlockStorage.hasBlockInfo(b)) return false;
|
||||
|
||||
if (allow) {
|
||||
BlockMenu inv = BlockStorage.getInventory(b);
|
||||
|
Loading…
Reference in New Issue
Block a user