From 43666bc068a7e9d9d0e523ef300a472e6d167c1a Mon Sep 17 00:00:00 2001 From: Des Herriott Date: Mon, 23 Dec 2024 09:45:12 +0000 Subject: [PATCH 1/2] fix: "empty" icons weren't serializing correctly for network transfer https://github.com/FTBTeam/FTB-Mods-Issues/issues/1427 --- .../main/java/dev/ftb/mods/ftblibrary/icon/Color4I.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/src/main/java/dev/ftb/mods/ftblibrary/icon/Color4I.java b/common/src/main/java/dev/ftb/mods/ftblibrary/icon/Color4I.java index 7ec88858..f4917470 100644 --- a/common/src/main/java/dev/ftb/mods/ftblibrary/icon/Color4I.java +++ b/common/src/main/java/dev/ftb/mods/ftblibrary/icon/Color4I.java @@ -89,13 +89,20 @@ public PixelBuffer createPixelBuffer() { return null; } + @Override public int hashCode() { return 0; } + @Override public boolean equals(Object o) { return o == this; } + + @Override + public String toString() { + return ""; // see Icon.isNone() + } }; static { From 1c29ad7400653872537f374cf2f6060aa9c9cc1a Mon Sep 17 00:00:00 2001 From: Des Herriott Date: Mon, 23 Dec 2024 09:45:24 +0000 Subject: [PATCH 2/2] build: version -> 2100.2.7 --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 1e3e977f..ba968935 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ org.gradle.daemon=false mod_id=ftblibrary archives_base_name=ftb-library maven_group=dev.ftb.mods -mod_version=2001.2.6 +mod_version=2001.2.7 mod_author=FTB Team minecraft_version=1.20.1 architectury_version=9.0.8