Skip to content

Commit

Permalink
Fixed button dupe bug
Browse files Browse the repository at this point in the history
*Fixed #30 and a hidden bug that duplicated items even without resizing.
  • Loading branch information
CleverNucleus committed Sep 24, 2021
1 parent 6816d73 commit 5a91ed8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public Collection<PageLayer> 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);
}
}

0 comments on commit 5a91ed8

Please sign in to comment.