From c279901edb94f3701d2753d8033b2f2480143251 Mon Sep 17 00:00:00 2001 From: lothrazar Date: Fri, 4 Oct 2024 16:00:39 -0700 Subject: [PATCH] finalize facades after testing with neo+forge --- gradle.properties | 2 +- .../lothrazar/storagenetwork/block/cable/TileCable.java | 7 +++++-- update.json | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/gradle.properties b/gradle.properties index 2ed1bc6d..66e0a473 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,7 +13,7 @@ org.gradle.daemon=false mod_id=storagenetwork curse_id=268495 -mod_version=1.11.2-SNAPSHOT +mod_version=1.11.2 diff --git a/src/main/java/com/lothrazar/storagenetwork/block/cable/TileCable.java b/src/main/java/com/lothrazar/storagenetwork/block/cable/TileCable.java index 01903f84..aef2a388 100644 --- a/src/main/java/com/lothrazar/storagenetwork/block/cable/TileCable.java +++ b/src/main/java/com/lothrazar/storagenetwork/block/cable/TileCable.java @@ -41,10 +41,13 @@ public void load(CompoundTag compound) { @Override public void saveAdditional(CompoundTag compound) { - super.saveAdditional(compound); - if (facadeState != null) { + if (facadeState == null) { + compound.remove(NBT_FACADE); + } + else { compound.put(NBT_FACADE, facadeState); } + super.saveAdditional(compound); } public static TileCable getTileCable(BlockGetter world, BlockPos pos) { diff --git a/update.json b/update.json index 889019ee..451c24a1 100644 --- a/update.json +++ b/update.json @@ -1,7 +1,7 @@ { "homepage": "https://www.curseforge.com/minecraft/mc-mods/simple-storage-network", "promos": { - "1.20.1-latest": "1.11.1" + "1.20.1-latest": "1.11.2" }, "1.20.1": { "1.10.0":"Ported to 1.20.1, depends on flib-0.0.7+ . Fixed patchouli book. Port to new non-deprecated curios datapack tags. Includes pull requests merged into the 1.18 and 1.19 branches : Merge pull request #492 from IIpragmaII/trunk/1.18 @IIpragmaII @VasurTrekkson Improved performance for export node. fix priority german translation @lightlike . Fixed recipes not showing when pressing the JEI recipe key @Demerso. Create uk_ua.json @SKZGx " @@ -10,6 +10,6 @@ ,"1.11.1":"The Storage Request Table 'storagenetwork:request' block no longer saves the contents of its crafting-grid; instead items are returned to the player on close, exactly matching vanilla crafting table behavior (this was changed to prevent potential exploits. If any items are left behind in the grid during world upgrade they will be returned and not lost. No changes were made to the remotes or to other blocks). Fixed a null pointer exception " - ,"1.11.2":"Ported the Cable Facades feature (from Minecraft 1.12.2), so that you can shift-left-click with a block on a cable to hide it with a facade. Disable this feature or ignore cretain blocks with the config file" + ,"1.11.2":"Ported the Cable Facades feature (from Minecraft 1.12.2), so that you can shift-left-click with a block on a cable to hide it with a facade. Disable this feature or ignore certain blocks with the config file" } }