This commit is contained in:
Luca 2021-11-23 16:46:20 +01:00
parent 05a5e92cb6
commit 85a2027d47
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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);
}
}