9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-19 15:09:19 +00:00

fix: allow id to be specified in menu-config, default to filename

This commit is contained in:
Boy
2025-04-26 12:16:41 +02:00
parent 6e2f333404
commit 2841742af9

View File

@@ -57,7 +57,7 @@ public class Menu {
private final boolean shading; private final boolean shading;
public Menu(String id, @NotNull ConfigurationNode config) { public Menu(String id, @NotNull ConfigurationNode config) {
this.id = id; this.id = config.node("id").getString(id);
this.config = config; this.config = config;
title = config.node("title").getString("chest"); title = config.node("title").getString("chest");