Fix deployer cannot place potato on campfire

https://discordapp.com/channels/620934202875183104/689866656914210897/697585687397925007
This commit is contained in:
Snownee 2020-05-18 18:34:02 +08:00
parent 830c1c6d3d
commit e3d3a5de3d

View File

@ -82,7 +82,7 @@ public class DeployerHandler {
static boolean shouldActivate(ItemStack held, World world, BlockPos targetPos) {
if (held.getItem() instanceof BlockItem)
if (!world.getBlockState(targetPos).getMaterial().isReplaceable())
if (world.getBlockState(targetPos).getBlock() == ((BlockItem) held.getItem()).getBlock())
return false;
if (held.getItem() instanceof BucketItem) {