SteamWar/FightSystem
Archiviert
13
1

Fix Redstone and Piston item

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2020-07-26 08:44:46 +02:00
Ursprung f441f76f62
Commit d0f97430ae

Datei anzeigen

@ -73,6 +73,14 @@ public class InFightInventoryListener extends BasicListener {
Inventory inventory = event.getPlayer().getInventory(); Inventory inventory = event.getPlayer().getInventory();
Material type = event.getBlock().getType(); Material type = event.getBlock().getType();
switch(type){
case REDSTONE_WIRE:
type = Material.REDSTONE;
break;
case PISTON_HEAD:
type = Material.PISTON;
break;
}
ItemStack itemStack; ItemStack itemStack;
for (int i = 0; i <= 35; i++) { //35 is the last normal inventory slot for (int i = 0; i <= 35; i++) { //35 is the last normal inventory slot