mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-25 07:59:44 +00:00
No magic numbers
This commit is contained in:
parent
7e580920f6
commit
01ad006ca3
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ public class ItemDb implements IConf, net.ess3.api.IItemDb {
|
|||
}
|
||||
ItemStack retval = new ItemStack(mat);
|
||||
if (mat == Material.MOB_SPAWNER) {
|
||||
if (metaData == 0) metaData = 90;
|
||||
if (metaData == 0) metaData = EntityType.PIG.getTypeId();
|
||||
try {
|
||||
retval = ess.getSpawnerProvider().setEntityType(retval, EntityType.fromId(metaData));
|
||||
} catch (IllegalArgumentException e) {
|
||||
|
|
Loading…
Reference in a new issue