make pulley key null, could avoid a crash

This commit is contained in:
JozsefA 2021-01-28 14:41:54 -08:00
parent b63466774b
commit 1de931a122

View file

@ -106,6 +106,7 @@ public class BeltInstance extends KineticTileInstance<BeltTileEntity> {
keys.forEach(InstanceKey::delete);
keys.clear();
if (pulleyKey != null) pulleyKey.delete();
pulleyKey = null;
}
private float getScrollSpeed() {