Spooky ghost honey

- Fixed pipes drawing non-source honey from beehives
- Fixed deployers duplicating glass bottles
This commit is contained in:
simibubi 2021-03-30 18:48:57 +02:00
parent 3a6714fb08
commit ae340ccac0
2 changed files with 3 additions and 1 deletions

View file

@ -90,6 +90,7 @@ public class DeployerFakePlayer extends FakePlayer {
@Override @Override
public ItemStack onFoodEaten(World world, ItemStack stack) { public ItemStack onFoodEaten(World world, ItemStack stack) {
stack.shrink(1);
return stack; return stack;
} }

View file

@ -78,7 +78,8 @@ public class OpenEndedPipe extends FlowSource {
if (state.has(HONEY_LEVEL) && state.get(HONEY_LEVEL) >= 5) { if (state.has(HONEY_LEVEL) && state.get(HONEY_LEVEL) >= 5) {
if (!simulate) if (!simulate)
world.setBlockState(outputPos, state.with(HONEY_LEVEL, 0), 3); world.setBlockState(outputPos, state.with(HONEY_LEVEL, 0), 3);
return new FluidStack(AllFluids.HONEY.get(), 250); return new FluidStack(AllFluids.HONEY.get()
.getStillFluid(), 250);
} }
if (!waterlog && !state.getMaterial() if (!waterlog && !state.getMaterial()