From dd47468f00624bc6f5cdc885aa65004304d241dc Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Mon, 13 Jul 2020 17:53:05 -0400 Subject: [PATCH] Improve Switch Textures Update To 20w28a --- gradle.properties | 4 ++-- .../component/NetworkComponent.java | 8 ++++---- .../energonrelics/textures/block/switch_off.png | Bin 622 -> 702 bytes .../energonrelics/textures/block/switch_on.png | Bin 623 -> 703 bytes 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gradle.properties b/gradle.properties index e06032d..a2aaed0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ org.gradle.jvmargs = -Xmx1G # Fabric Properties # check these on https://fabricmc.net/use - minecraft_version = 1.16.1 + minecraft_version = 20w28a yarn_build = 20 fabric_loader_version = 0.8.9+build.203 @@ -13,4 +13,4 @@ org.gradle.jvmargs = -Xmx1G # Dependencies # currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api - fabric_api_version = 0.14.1+build.372-1.16 + fabric_api_version = 0.14.5+build.376-1.16 diff --git a/src/main/java/com/thebrokenrail/energonrelics/component/NetworkComponent.java b/src/main/java/com/thebrokenrail/energonrelics/component/NetworkComponent.java index d6b257d..77bd601 100644 --- a/src/main/java/com/thebrokenrail/energonrelics/component/NetworkComponent.java +++ b/src/main/java/com/thebrokenrail/energonrelics/component/NetworkComponent.java @@ -34,9 +34,9 @@ public class NetworkComponent extends PersistentState { networks.clear(); Tag list = tag.get("Networks"); if (list instanceof ListTag) { - ListTag networks = (ListTag) list; - for (int i = 0; i < networks.size(); i++) { - this.networks.add(getEntry(networks.getCompound(i))); + ListTag networksTag = (ListTag) list; + for (int i = 0; i < networksTag.size(); i++) { + networks.add(getEntry(networksTag.getCompound(i))); } } } @@ -84,6 +84,7 @@ public class NetworkComponent extends PersistentState { } private Entry getOrCreate(int id) { + markDirty(); for (Entry entry : networks) { if (entry.id == id) { return entry; @@ -93,7 +94,6 @@ public class NetworkComponent extends PersistentState { entry.id = id; entry.sources.clear(); networks.add(entry); - markDirty(); return entry; } diff --git a/src/main/resources/assets/energonrelics/textures/block/switch_off.png b/src/main/resources/assets/energonrelics/textures/block/switch_off.png index 9371a1b1014778abdca279efdb44c52e39c101db..8303632e264e52745a25a2b8fe255ebd12ab1e61 100644 GIT binary patch delta 276 zcmV+v0qg$m1il5Zv;lwhNkl8)JD!8R^A{t) zv4#Oi7rJI7AHfX)iGjUg+DL|3+FrlX`WSfvRBa0*J0eb;CYIaPU z!eDpfE=u&lqVvVJH5f^mF(xMFKcU0~vmIN0zz75MFu|u89EiAb87@DgTY%yMVl^Qf a0sucEyc+3`ZlVkT0000s41~eB17QoM(-~wC=3xz{&|H%eL})ek zwRa!=p*E#-njf*kn{y_FbM6(YltQ`?f?3#c#ArAnQJ{gAg8+DW-!@7}5H>^0)z%6$ z$jFSxD?qAbW_|!h5XlTZZK0309pu`cd+n`-S3B%PLqJ=$ww*f%pzm4R&J8ddm;|W+ xZQ3&k0W>quZ3MBn#y`hI{{UC@CA{}legU5wi}m|WFfsrD002ovPDHLkV1g|BRYm{+ diff --git a/src/main/resources/assets/energonrelics/textures/block/switch_on.png b/src/main/resources/assets/energonrelics/textures/block/switch_on.png index 94d94a21c0aa44e12a38bfb27c676c9dc6d42e9e..7bb4b1ca02b3908b001f87646095434b1b1bde9e 100644 GIT binary patch delta 277 zcmV+w0qXwm1iuBav;lwiNklW%E$p@ zmy(GReX!_!v26`TQf7>aiTO_`F=4YA<_(N6z?NaKiNU;q5e6^`s4203R17Qo|a5{qy!Z?OCm_l<+N)Vyd z*w@~D^oI^1gwyQMQ9z*>kPEweV_(m8c0Q%ho)$^8nO6YumX2dIOUn y8K6zO2O)rF=DD>X1FrGUG0{K3RecHPT$W$ogN!+gsuT_Y0000