Added back register method.

This commit is contained in:
2022-01-09 19:28:34 +00:00
parent c91add1e80
commit 6f0f287dd5

View File

@ -9,11 +9,13 @@ import java.util.HashMap;
public class ModItems { public class ModItems {
public static final RegistryObject<Item> STRAW_TOTEM = Registration.ITEMS.register("straw_totem", ); public static final RegistryObject<Item> STRAW_TOTEM = Registration.ITEMS.register("straw_totem", );
ModItems() { static {
HashMap<String, Config.Server.TotemConfig> configs = Config.Server.TOTEM_CONFIGS; HashMap<String, Config.Server.TotemConfig> configs = Config.Server.TOTEM_CONFIGS;
if (configs.get("Straw Totem").IS_ENABLED.get()) { if (configs.get("Straw Totem").IS_ENABLED.get()) {
STRAW_TOTEM = Registration.ITEMS.register("straw_totem", ); STRAW_TOTEM = Registration.ITEMS.register("straw_totem", );
} }
} }
public static void register() {}
} }