mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-14 22:03:40 +01:00
Fix crash extending belts
This commit is contained in:
parent
a666f24ee0
commit
541e5bd6ae
1 changed files with 3 additions and 6 deletions
|
@ -234,7 +234,9 @@ public class BeltTileEntity extends KineticTileEntity {
|
||||||
beltLength = compound.getInt("Length");
|
beltLength = compound.getInt("Length");
|
||||||
if (prevBeltLength != beltLength) {
|
if (prevBeltLength != beltLength) {
|
||||||
DistExecutor.unsafeRunWhenOn(Dist.CLIENT, () -> () -> {
|
DistExecutor.unsafeRunWhenOn(Dist.CLIENT, () -> () -> {
|
||||||
lighter = null;
|
if (lighter != null) {
|
||||||
|
lighter.initializeLight();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -593,11 +595,6 @@ public class BeltTileEntity extends KineticTileEntity {
|
||||||
GridAlignedBB beltVolume = getVolume();
|
GridAlignedBB beltVolume = getVolume();
|
||||||
|
|
||||||
if (beltVolume.intersects(changed)) {
|
if (beltVolume.intersects(changed)) {
|
||||||
if (light == null) {
|
|
||||||
initializeLight();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (type == LightLayer.BLOCK)
|
if (type == LightLayer.BLOCK)
|
||||||
updateBlockLight();
|
updateBlockLight();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue