3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-17 20:10:10 +01:00

Add SpawnReason.DROWNED

Dieser Commit ist enthalten in:
klugemonkey 2018-07-26 05:02:02 -07:00 committet von md_5
Ursprung e70d864f00
Commit 5d881a9264

Datei anzeigen

@ -30,6 +30,15 @@
}
}
@@ -220,7 +234,7 @@
entityzombie.setCustomNameVisible(this.getCustomNameVisible());
}
- this.world.addEntity(entityzombie);
+ this.world.addEntity(entityzombie, CreatureSpawnEvent.SpawnReason.DROWNED); // CraftBukkit - added spawn reason
this.die();
}
}
@@ -251,8 +265,8 @@
if (this.world.getType(new BlockPosition(i1, j1 - 1, k1)).q() && this.world.getLightLevel(new BlockPosition(i1, j1, k1)) < 10) {
entityzombie.setPosition((double) i1, (double) j1, (double) k1);