Dehydration

Dehydration

3M Downloads

dispenser turns into a copper cauldron under certain conditions

sdousui opened this issue ยท 1 comments

commented

Minecraft Version

1.20.x

Mod Loader Version

Fabric 0.16.14

Mod Version

1.3.6+1.20.1

Describe the Issue

Issue:
when the full level of the copper cauldron is 1 or 2 and a purified water bottle is fired from the dispenser, the dispenser itself becomes a copper cauldron.

Reason:
the problem is that in the last conditional branch in DispenserBlockMixin.dispenseMixin(), when the water volume of the copper cauldron is increased by one to overwrite the block, the dispenser's own BlockPos is used as an argument.

world.setBlockState(pos, (BlockState) blockState.cycle(CopperLeveledCauldronBlock.LEVEL));

a quick fix is to replace that to newPos.

latest.log

https://gist.github.com/sdousui/94f4344abd7b04c0c53dc331c4d0e9b3

Do you use any other mods except the required ones?

no

commented

it seems like this bug exists all the way from 1.17.x~1.21.x.