No magic numbers

This commit is contained in:
vemacs 2015-07-01 08:16:45 -05:00
parent 7e580920f6
commit 01ad006ca3

View File

@ -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) {