Create

Create

86M Downloads

[1.15.2_v0.3+custom][5c56ada] Stopping a contraption with a moving bell causes a NullPointerException

wchen1990 opened this issue ยท 2 comments

commented

Minecraft Version: 1.15.2
Forge Version: 31.2.36
Create Version: 0.3+custom (5c56ada)

Crash Report: crash-2020-09-25_23.21.37-server.txt
Repro Steps: Simple contraption with a mechanical bearing a slime block and a bell with rotation provided and then stopping the contraption


Not exactly sure why this is happening since stopMoving should've been called before the context's position was nulled. Maybe the bell actor was added twice? Or it some how goes over the same object again? I'm leaning towards the bell being added twice since when you start the contraption you hear two bell noises.


Proposed Fix:

Lines changed:

BellMovementBehaviour:29-30
if (context.position != null)
context.world.playSound(null, new BlockPos(context.position), SoundEvents.BLOCK_BELL_USE, SoundCategory.BLOCKS,

commented

Seems to no longer be an issue in latest commits.

commented

Ha, I'm an idiot and I forgot to stash my changes and rebuild using just the latest commits. Issue still persists.