fix constructor voiding fluids fixes #2801 (#2802)

This commit is contained in:
Darkere
2021-01-02 11:15:23 +01:00
committed by GitHub
parent f4b4ce9abe
commit 2258a8a5c5

View File

@@ -101,7 +101,7 @@ public class ConstructorNetworkNode extends NetworkNode implements IComparable,
if (upgrades.hasUpgrade(UpgradeItem.Type.CRAFTING)) { if (upgrades.hasUpgrade(UpgradeItem.Type.CRAFTING)) {
network.getCraftingManager().request(this, stack, FluidAttributes.BUCKET_VOLUME); network.getCraftingManager().request(this, stack, FluidAttributes.BUCKET_VOLUME);
} }
} else { } else if (!world.getBlockState(front).getFluidState().isSource()) {
FluidUtil.tryPlaceFluid(WorldUtils.getFakePlayer((ServerWorld) world, getOwner()), world, Hand.MAIN_HAND, front, new NetworkFluidHandler(StackUtils.copy(stack, FluidAttributes.BUCKET_VOLUME)), stack); FluidUtil.tryPlaceFluid(WorldUtils.getFakePlayer((ServerWorld) world, getOwner()), world, Hand.MAIN_HAND, front, new NetworkFluidHandler(StackUtils.copy(stack, FluidAttributes.BUCKET_VOLUME)), stack);
} }
} }