Skip to content

Commit d0b0970

Browse files
committed
Out of this world
- Fix elevators trying to read from the contraption level - Looks like it would have caused issues with elevator contact display link behavior
1 parent 28b6bf7 commit d0b0970

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/simibubi/create/content/contraptions/elevator/ElevatorContraption.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public int getContactYOffset() {
145145

146146
public void broadcastFloorData(Level level, BlockPos contactPos) {
147147
ElevatorColumn column = ElevatorColumn.get(level, getGlobalColumn());
148-
if (!(world.getBlockEntity(contactPos) instanceof ElevatorContactBlockEntity ecbe))
148+
if (!(level.getBlockEntity(contactPos) instanceof ElevatorContactBlockEntity ecbe))
149149
return;
150150
if (column != null)
151151
column.floorReached(level, ecbe.shortName);

0 commit comments

Comments
 (0)