Skip to content

Commit

Permalink
fix: issue in Controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Uhutown committed Jun 23, 2024
1 parent 1956b16 commit 8130597
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ public void loadWrapper(final NBTWrapper wrapper) {
final Map<EnumState, Byte> map = new HashMap<>();
comp.keySet().stream().forEach(str -> {
final EnumState state = EnumState.of(str);
if (state == null)
return;
map.put(state, (byte) comp.getInteger(state.getNameWrapper()));
});
enabledStates.put(direction, map);
Expand Down

0 comments on commit 8130597

Please sign in to comment.