Fix DungeonHooks method to use correct type (#3587)

This commit is contained in:
Ben Staddon authored and LexManos committed 2017-01-11 16:13:32 -08:00
1 parent d672584b8d
commit d72888b6ab
1 file changed
+9 -1
@@ -62,13 +62,21 @@ public class DungeonHooks
return rarity;
}
// TODO: remove
/** @deprecated use {@link #removeDungeonMob(ResourceLocation)} */
@Deprecated
public static int removeDungeonMob(String name)
{
return removeDungeonMob(new ResourceLocation(name));
}
/**
* Will completely remove a Mob from the dungeon spawn list.
*
* @param name The name of the mob to remove
* @return The rarity of the removed mob, prior to being removed.
*/
public static int removeDungeonMob(String name)
public static int removeDungeonMob(ResourceLocation name)
{
for (DungeonMob mob : dungeonMobs)
{