Fix Redstone and Piston item
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
f441f76f62
Commit
d0f97430ae
@ -73,6 +73,14 @@ public class InFightInventoryListener extends BasicListener {
|
||||
Inventory inventory = event.getPlayer().getInventory();
|
||||
|
||||
Material type = event.getBlock().getType();
|
||||
switch(type){
|
||||
case REDSTONE_WIRE:
|
||||
type = Material.REDSTONE;
|
||||
break;
|
||||
case PISTON_HEAD:
|
||||
type = Material.PISTON;
|
||||
break;
|
||||
}
|
||||
ItemStack itemStack;
|
||||
|
||||
for (int i = 0; i <= 35; i++) { //35 is the last normal inventory slot
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren