Skip to content

Commit 65a86e0

Browse files
committed
fixed crash from null crash in FluidController
1 parent 31599c6 commit 65a86e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/src/main/java/tesseract/api/fluid/FluidController.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,10 @@ public void insert(long producerPos, Direction side, FluidTransaction transactio
117117
Map<Direction, List<FluidConsumer>> map = this.data.get(Pos.offset(producerPos, side));
118118
if (map == null)
119119
return;
120-
120+
121121
List<FluidConsumer> list = map.get(side);
122+
if (list == null) return; //TODO figure out how this becomes null
123+
122124
pressureData.clear();
123125

124126
loop: for (FluidConsumer consumer : list) {

0 commit comments

Comments
 (0)