forked from SteamWar/SteamWar
[fightsystem]: Rework blacklist to whitelist
This commit is contained in:
+1
-4
@@ -98,10 +98,7 @@ public class PersonalKitCreator implements Listener {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
InventoryType type = e.getInventory().getType();
|
InventoryType type = e.getInventory().getType();
|
||||||
if(type == InventoryType.CHEST || type == InventoryType.DISPENSER ||
|
if(type != InventoryType.PLAYER && type != InventoryType.CREATIVE) {
|
||||||
type == InventoryType.FURNACE || type == InventoryType.HOPPER ||
|
|
||||||
type == InventoryType.DROPPER || type == InventoryType.BARREL ||
|
|
||||||
type == InventoryType.BREWING || type == InventoryType.ENCHANTING) {
|
|
||||||
backup.close();
|
backup.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user