From 5a91ed8caf4169f161e4ca244098c031ef73c5b9 Mon Sep 17 00:00:00 2001 From: CleverNucleus Date: Fri, 24 Sep 2021 13:23:31 +0100 Subject: [PATCH] Fixed button dupe bug *Fixed #30 and a hidden bug that duplicated items even without resizing. --- gradle.properties | 2 +- src/main/java/com/github/clevernucleus/playerex/PlayerEx.java | 2 +- .../com/github/clevernucleus/playerex/api/client/page/Page.java | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index cdf05eb5..215db706 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G loader_version=0.11.6 # Mod Properties - mod_version = 3.0.4 + mod_version = 3.0.5 maven_group = com.github.clevernucleus archives_base_name = playerex diff --git a/src/main/java/com/github/clevernucleus/playerex/PlayerEx.java b/src/main/java/com/github/clevernucleus/playerex/PlayerEx.java index 0f081856..b1d61e79 100644 --- a/src/main/java/com/github/clevernucleus/playerex/PlayerEx.java +++ b/src/main/java/com/github/clevernucleus/playerex/PlayerEx.java @@ -35,7 +35,7 @@ public final class PlayerEx implements ModInitializer { public static final ModifierJsonLoader MANAGER = new ModifierJsonLoader(); /** Manual; ugh, I know. */ - public static final String VERSION = "3.0.4"; + public static final String VERSION = "3.0.5"; public static final ConfigCache CONFIG = new ConfigCache(); public static final SoundEvent LEVEL_UP_SOUND = new SoundEvent(new Identifier(ExAPI.MODID, "level_up")); public static final SoundEvent SP_SPEND_SOUND = new SoundEvent(new Identifier(ExAPI.MODID, "sp_spend")); diff --git a/src/main/java/com/github/clevernucleus/playerex/api/client/page/Page.java b/src/main/java/com/github/clevernucleus/playerex/api/client/page/Page.java index 0b9f2e76..d970eb9a 100644 --- a/src/main/java/com/github/clevernucleus/playerex/api/client/page/Page.java +++ b/src/main/java/com/github/clevernucleus/playerex/api/client/page/Page.java @@ -38,6 +38,7 @@ public Collection layers() { } public void buildLayers(HandledScreen parent, ScreenHandler handler, PlayerInventory inv) { + this.layers.clear(); PageRegistry.findPageLayers(this.identifier).stream().map(builder -> builder.build(parent, handler, inv, this.title)).forEach(this.layers::add); } }