Minor tweaks to previous commit.
This commit is contained in:
parent
30a4c20822
commit
b0c74b0dd4
@ -60,8 +60,10 @@ public class NmsItemStackCreate17R4P extends NmsItemStackCreate
|
|||||||
{
|
{
|
||||||
return PackageType.MINECRAFT_ITEM.getClass("ItemStack");
|
return PackageType.MINECRAFT_ITEM.getClass("ItemStack");
|
||||||
}
|
}
|
||||||
|
else
|
||||||
return PackageType.MINECRAFT_SERVER.getClass("ItemStack");
|
{
|
||||||
|
return PackageType.MINECRAFT_SERVER.getClass("ItemStack");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Class<?> getClassCraftItemStackCatch()
|
public static Class<?> getClassCraftItemStackCatch()
|
||||||
|
@ -9,6 +9,7 @@ public enum ServerType
|
|||||||
BUKKIT,
|
BUKKIT,
|
||||||
FORGE,
|
FORGE,
|
||||||
|
|
||||||
|
// END OF LIST
|
||||||
;
|
;
|
||||||
|
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
@ -16,14 +17,13 @@ public enum ServerType
|
|||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
|
||||||
private static final ServerType type = determineType();
|
private static final ServerType type = determineType();
|
||||||
|
|
||||||
public static ServerType get() { return type; }
|
public static ServerType get() { return type; }
|
||||||
|
|
||||||
private static ServerType determineType()
|
private static ServerType determineType()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// this is a class used by ALL forge based servers
|
// This is a class used by ALL forge based servers.
|
||||||
Class.forName("cpw.mods.fml.common.FMLCommonHandler");
|
Class.forName("cpw.mods.fml.common.FMLCommonHandler");
|
||||||
return FORGE;
|
return FORGE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user