PneumaticCraft: Repressurized

PneumaticCraft: Repressurized

57M Downloads

Drone ticking entity

siggystar opened this issue ยท 1 comments

commented

Describe the bug

Immediately after placing a drone, or ordering from amadron the drone becomes a ticking entity and causes the server/world to crash, i beleive this is because of the mod never setting up a drone reference before trying to create its associated fake player. this causes the value to be null, and because there is no null check it causes a ticking entity. This error happens in loaded chunks and in fresh worlds,

How to reproduce the bug

create a fresh world with pnc downloaded, place a drone down(or order from amadron), server/world crashes immediately

Expected behavior

Placing a drone should not cause a NullPointerException even if the drone reference is not yet fully initialized. i believe null check in DroneFakePlayer.getDronePos() would fix this.

Additional details

No response

Which Minecraft version are you using?

1.20.1

Which version of PneumaticCraft: Repressurized are you using?

pneumaticcraft-repressurized-6.0.20+mc1.20.1

Crash log

https://mclo.gs/MvpsJMx

commented

This has been narrowed down to an incopatibility with palladium