Fix mass storage placing

This commit is contained in:
abel1502 2026-02-28 14:37:28 +01:00
parent e72959d436
commit e41cfeff7f
No known key found for this signature in database
GPG Key ID: 076926596A536338

View File

@ -39,7 +39,7 @@ public class ItemBlockStorageCrate extends ItemBlockBase implements IGUIProvider
@Override
public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) {
// If crates can be opened from hand, prioritize this and require sneaking to place them
if (ServerConfig.CRATE_OPEN_HELD.get() && !player.isSneaking()) {
if (ServerConfig.CRATE_OPEN_HELD.get() && !player.isSneaking() && Block.getBlockFromItem(stack.getItem()) != ModBlocks.mass_storage) {
return false;
}