mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 11:59:25 +00:00
Fix DungeonHooks method to use correct type (#3587)
This commit is contained in:
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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user