Allow harvesting statue_elb with a red key

This commit is contained in:
abel1502 2024-11-01 01:11:05 +03:00
parent 2ddb61e5a4
commit 2f0c25daf8
No known key found for this signature in database
GPG Key ID: 076926596A536338

View File

@ -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;