From ca955e855ec7bce31fe7518c39b8339640302527 Mon Sep 17 00:00:00 2001 From: Andrew121410 Date: Mon, 9 Sep 2024 20:51:44 -0400 Subject: [PATCH] Fix rare tiny bug. --- .../mc/world16elevators/ElevatorFloorSelectorManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/andrew121410/mc/world16elevators/ElevatorFloorSelectorManager.java b/src/main/java/com/andrew121410/mc/world16elevators/ElevatorFloorSelectorManager.java index 9dfd621..b30db64 100644 --- a/src/main/java/com/andrew121410/mc/world16elevators/ElevatorFloorSelectorManager.java +++ b/src/main/java/com/andrew121410/mc/world16elevators/ElevatorFloorSelectorManager.java @@ -219,7 +219,9 @@ public void stop() { this.isRunning = false; } - public FloorQueueObject getNextFloor(int floorNumber) { + public FloorQueueObject getNextFloor(Integer floorNumber) { + if (floorNumber == null) return null; + ElevatorFloor elevatorFloor = null; ElevatorStatus elevatorStatus = null; if (floorNumber == 1) {