mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-25 14:34:28 +00:00
Updated The Json enum helper to point to the new packaged names. And fixed a casing change in ModLoader
This commit is contained in:
1 parent
25e57d950a
commit
b2305b9d62
2 files changed
+5
-5
No files matched your search
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.src.forge;
|
||||
|
||||
import net.minecraft.src.EnumJsonNodeType;
|
||||
import argo.jdom.JsonNodeType;
|
||||
import net.minecraft.src.EnumOS2;
|
||||
import net.minecraft.src.EnumOptions;
|
||||
import net.minecraft.src.EnumRarity;
|
||||
@@ -10,7 +10,7 @@ public class EnumHelperClient extends EnumHelper
|
||||
|
||||
private static Class[][] ctrs =
|
||||
{
|
||||
{EnumJsonNodeType.class},
|
||||
{JsonNodeType.class},
|
||||
{EnumOptions.class, String.class, boolean.class, boolean.class},
|
||||
{EnumOS2.class},
|
||||
{EnumRarity.class, int.class, String.class}
|
||||
@@ -19,14 +19,14 @@ public class EnumHelperClient extends EnumHelper
|
||||
private static boolean[] decompiled = new boolean[ctrs.length];
|
||||
private static boolean isSetup = false;
|
||||
|
||||
public static EnumJsonNodeType addJsonNodeType(String name)
|
||||
public static JsonNodeType addJsonNodeType(String name)
|
||||
{
|
||||
if (!isSetup)
|
||||
{
|
||||
setup();
|
||||
}
|
||||
|
||||
return addEnum(decompiled[0], EnumJsonNodeType.class, name,
|
||||
return addEnum(decompiled[0], JsonNodeType.class, name,
|
||||
new Class[] {},
|
||||
new Object[] {});
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ public class PacketHandlerClient implements IPacketHandler
|
||||
{
|
||||
e.printStackTrace();
|
||||
ModLoader.getLogger().throwing("ForgeHooksClient", "onEntitySpawnPacket", e);
|
||||
ModLoader.ThrowException(String.format("Error spawning entity of type %d for %s.", packet.typeID, MinecraftForge.getModByID(packet.modID)), e);
|
||||
ModLoader.throwException(String.format("Error spawning entity of type %d for %s.", packet.typeID, MinecraftForge.getModByID(packet.modID)), e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user