Skip to content

Commit

Permalink
Fix BWG Chest Boats not Saving Data. Closes #114
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph T. McQuigg <[email protected]>
  • Loading branch information
JT122406 committed Sep 16, 2024
1 parent 771a39b commit 6cf63b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.2.4
- Fix BWG Chest Boats not Saving Data

# 1.2.3
- Fix Oddion Foods Saturation Values
- Fix Colored Sand Recipes using colored sand instead of normal sand
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@ protected void defineSynchedData() {
@Override
protected void addAdditionalSaveData(CompoundTag pCompound) {
pCompound.putString("Type", this.getModVariant().getSerializedName());
super.addAdditionalSaveData(pCompound);
}

@Override
protected void readAdditionalSaveData(CompoundTag pCompound) {
if (pCompound.contains("Type", 8))
this.setVariant(BWGBoatEntity.Type.byName(pCompound.getString("Type")));
super.readAdditionalSaveData(pCompound);
}

public BWGBoatEntity.Type getModVariant() {
Expand Down

0 comments on commit 6cf63b0

Please sign in to comment.