Skip to content

Commit 7be40b0

Browse files
committed
Can be an assert.
1 parent dc6089d commit 7be40b0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/li/cil/oc2/common/blockentity/CreativeEnergyBlockEntity.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ public CreativeEnergyBlockEntity(final BlockPos pos, final BlockState state) {
2020

2121
@Override
2222
public void serverTick() {
23-
if (level == null) {
24-
return;
25-
}
23+
assert level != null;
2624

2725
for (final Direction side : SIDES) {
2826
final BlockPos neighborPos = getBlockPos().relative(side);

0 commit comments

Comments
 (0)