Improve Switch Textures
All checks were successful
EnergonRelics/pipeline/head This commit looks good

Update To 20w28a
This commit is contained in:
TheBrokenRail 2020-07-13 17:53:05 -04:00
parent e60868a22d
commit dd47468f00
4 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@ org.gradle.jvmargs = -Xmx1G
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/use # check these on https://fabricmc.net/use
minecraft_version = 1.16.1 minecraft_version = 20w28a
yarn_build = 20 yarn_build = 20
fabric_loader_version = 0.8.9+build.203 fabric_loader_version = 0.8.9+build.203
@ -13,4 +13,4 @@ org.gradle.jvmargs = -Xmx1G
# Dependencies # Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api # 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

View File

@ -34,9 +34,9 @@ public class NetworkComponent extends PersistentState {
networks.clear(); networks.clear();
Tag list = tag.get("Networks"); Tag list = tag.get("Networks");
if (list instanceof ListTag) { if (list instanceof ListTag) {
ListTag networks = (ListTag) list; ListTag networksTag = (ListTag) list;
for (int i = 0; i < networks.size(); i++) { for (int i = 0; i < networksTag.size(); i++) {
this.networks.add(getEntry(networks.getCompound(i))); networks.add(getEntry(networksTag.getCompound(i)));
} }
} }
} }
@ -84,6 +84,7 @@ public class NetworkComponent extends PersistentState {
} }
private Entry getOrCreate(int id) { private Entry getOrCreate(int id) {
markDirty();
for (Entry entry : networks) { for (Entry entry : networks) {
if (entry.id == id) { if (entry.id == id) {
return entry; return entry;
@ -93,7 +94,6 @@ public class NetworkComponent extends PersistentState {
entry.id = id; entry.id = id;
entry.sources.clear(); entry.sources.clear();
networks.add(entry); networks.add(entry);
markDirty();
return entry; return entry;
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 622 B

After

Width:  |  Height:  |  Size: 702 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 623 B

After

Width:  |  Height:  |  Size: 703 B