Skip to content

Commit

Permalink
Add forgotten visual state sync for the Cell Dock's spin value
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Jan 24, 2025
1 parent 0ebf585 commit b8111b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/gripe/_90/megacells/item/part/CellDockPart.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ public void readVisualStateFromNBT(CompoundTag data) {
LOGGER.warn("Couldn't read cell status for {} from {}", this, data);
clientCellState = CellState.ABSENT;
}

spin = data.getByte("spin");
}

@Override
Expand All @@ -160,6 +162,7 @@ public void writeVisualStateToNBT(CompoundTag data) {
data.putString(
"cellId", BuiltInRegistries.ITEM.getKey(getCell().getItem()).toString());
data.putString("cellStatus", getCellStatus(0).name());
data.putByte("spin", spin);
}

private void recalculateDisplay() {
Expand Down

0 comments on commit b8111b4

Please sign in to comment.