diff --git a/src/main/java/io/github/teampropulsive/Propulsive.java b/src/main/java/io/github/teampropulsive/Propulsive.java index a410fcb..c1a1fcf 100644 --- a/src/main/java/io/github/teampropulsive/Propulsive.java +++ b/src/main/java/io/github/teampropulsive/Propulsive.java @@ -48,10 +48,11 @@ public class Propulsive implements ModInitializer { public static final RegistryKey ALUMINUM_ORE_PLACED_KEY = RegistryKey.of(RegistryKeys.PLACED_FEATURE, id("ore_aluminum")); public static final RegistryKey BAUXITE_CLUSTER_PLACED_KEY = RegistryKey.of(RegistryKeys.PLACED_FEATURE, id("ore_bauxite_cluster")); public static final RegistryKey PURE_BAUXITE_CLUSTER_PLACED_KEY = RegistryKey.of(RegistryKeys.PLACED_FEATURE, id("ore_pure_bauxite")); - public static final ScreenHandlerType BLUEPRINT_TABLE_SCREEN = Registry.register(Registries.SCREEN_HANDLER, id("blueprint_table"), new ExtendedScreenHandlerType<>(((syncId, inventory, buf) -> new BlueprintTableScreenHandler(syncId, buf)))); + public static Dictionary gasDictionary; + @Override public void onInitialize() { @@ -80,7 +81,7 @@ public void onInitialize() { ResourceManagerHelper.get(ResourceType.SERVER_DATA).registerReloadListener(new GasReloadListener()); } - public static Dictionary gasDictionary; + // Dimensions public static RegistryKey SPACE = RegistryKey.of(RegistryKeys.WORLD, new Identifier("propulsive:space")); diff --git a/src/main/java/io/github/teampropulsive/data/GasReloadListener.java b/src/main/java/io/github/teampropulsive/data/GasReloadListener.java index 681bb10..0ab4335 100644 --- a/src/main/java/io/github/teampropulsive/data/GasReloadListener.java +++ b/src/main/java/io/github/teampropulsive/data/GasReloadListener.java @@ -40,7 +40,7 @@ public void reload(ResourceManager manager) { double density = densityJsonKey.getAsDouble(); JsonObject identifierJsonKey = object.getAsJsonObject("density"); String identifier = identifierJsonKey.getAsString(); - Gas gas = new Gas(id(identifier), density); + Gas gas = new Gas(new Identifier(resource.getResourcePackName(), identifier), density); gasDictionary.put(identifier, gas); } catch (Exception e) { Propulsive.LOGGER.error("Error occurred while loading gas " + id.toString(), e);