mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-14 20:21:50 +01:00
Default to pig spawner, fixes #67
This commit is contained in:
parent
1c78f5cc3b
commit
5227824608
@ -137,6 +137,7 @@ public class ItemDb implements IConf, net.ess3.api.IItemDb {
|
|||||||
}
|
}
|
||||||
ItemStack retval = new ItemStack(mat);
|
ItemStack retval = new ItemStack(mat);
|
||||||
if (mat == Material.MOB_SPAWNER) {
|
if (mat == Material.MOB_SPAWNER) {
|
||||||
|
if (metaData == 0) metaData = 50;
|
||||||
try {
|
try {
|
||||||
retval = ess.getSpawnerProvider().setEntityType(retval, EntityType.fromId(metaData));
|
retval = ess.getSpawnerProvider().setEntityType(retval, EntityType.fromId(metaData));
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user