??
This commit is contained in:
parent
05a5e92cb6
commit
85a2027d47
@ -93,8 +93,8 @@ public class Generator {
|
||||
}
|
||||
|
||||
ItemStack drop = new ItemStack(material, 1);
|
||||
this.location.getWorld().dropItemNaturally(this.location, drop);
|
||||
this.game.getDroppedItems().add(drop);
|
||||
this.location.getWorld().dropItemNaturally(this.location, drop);
|
||||
}
|
||||
|
||||
public void setActivated(boolean activated) {
|
||||
|
@ -74,7 +74,7 @@ public class RandomListeners implements Listener {
|
||||
|
||||
@EventHandler
|
||||
public void onCreatureSpawn(CreatureSpawnEvent event) {
|
||||
if (event.getEntity().getType() != EntityType.ARMOR_STAND) {
|
||||
if (event.getEntity().getType() != EntityType.ARMOR_STAND && event.getEntity().getType() != EntityType.VILLAGER) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user