From 6cf63b015690cf99c1380e8329ae6387e3e6277b Mon Sep 17 00:00:00 2001 From: "Joseph T. McQuigg" Date: Mon, 16 Sep 2024 11:02:51 -0400 Subject: [PATCH] Fix BWG Chest Boats not Saving Data. Closes #114 Signed-off-by: Joseph T. McQuigg --- CHANGELOG.md | 3 +++ .../biomeswevegone/world/entity/boats/BWGChestBoatEntity.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ef5e7233..317a9b965 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Common/src/main/java/net/potionstudios/biomeswevegone/world/entity/boats/BWGChestBoatEntity.java b/Common/src/main/java/net/potionstudios/biomeswevegone/world/entity/boats/BWGChestBoatEntity.java index b235a686d..5488fa56a 100644 --- a/Common/src/main/java/net/potionstudios/biomeswevegone/world/entity/boats/BWGChestBoatEntity.java +++ b/Common/src/main/java/net/potionstudios/biomeswevegone/world/entity/boats/BWGChestBoatEntity.java @@ -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() {