Skip to content

Commit

Permalink
Don't fail to load plugin if "Floor" is missing in elevator movement,…
Browse files Browse the repository at this point in the history
… this happens because emergency stop was thrown. Floor is null
  • Loading branch information
andrew121410 committed Sep 11, 2024
1 parent f90b08f commit b196fcb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public ElevatorMovement deserialize(Type type, ConfigurationNode node) throws Se
return null;
}

Integer floor = SerializerUtils.nonVirtualNode(node, "Floor").getInt();
Integer floor = node.node("Floor").get(Integer.class);
Location location = SerializerUtils.nonVirtualNode(node, "AtDoor").get(Location.class);
BoundingBox boundingBox = SerializerUtils.nonVirtualNode(node, "BoundingBox").get(BoundingBox.class);

Expand Down

0 comments on commit b196fcb

Please # to comment.