mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Allow harvesting statue_elb with a red key
This commit is contained in:
parent
2ddb61e5a4
commit
2f0c25daf8
@ -153,6 +153,13 @@ public class DecoBlockAlt extends BlockContainer {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
boolean cracked = player.getHeldItem().getItem() == ModItems.key_red_cracked;
|
||||
if((player.getHeldItem().getItem() == ModItems.key_red || cracked)) {
|
||||
if(cracked) player.getHeldItem().stackSize--;
|
||||
world.func_147480_a(x, y, z, false);
|
||||
this.dropBlockAsItem(world, x, y, z, world.getBlockMetadata(x, y, z), 0);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user