Skip to content

Commit fa2103b

Browse files
committed
- 修复 NPE。
1 parent 7ed82da commit fa2103b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/github/kasuminova/novaeng/common/tile/ecotech/ecalculator/ECalculatorCellDrive.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ public void saveChanges() {
187187
@Override
188188
public void notifyUpdate() {
189189
super.notifyUpdate();
190+
if (world == null) {
191+
return;
192+
}
190193
world.notifyNeighborsOfStateChange(getPos(), world.getBlockState(getPos()).getBlock(), false);
191194
}
192195

0 commit comments

Comments
 (0)