mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Make the spawning listen to the server spawn-settings
This commit is contained in:
1 parent
f789c9e744
commit
40f7986a11
4 files changed
+25
-8
No files matched your search
@@ -47,9 +47,11 @@ public class WorldServer extends World implements BlockChangeDelegate {
|
||||
}
|
||||
|
||||
public void a(Entity entity, boolean flag) {
|
||||
if (!this.D.m && (entity instanceof EntityAnimal || entity instanceof EntityWaterAnimal)) {
|
||||
entity.q();
|
||||
}
|
||||
// CraftBukkit start -- We prevent spawning in general, so this butching is not needed
|
||||
//if (!this.D.m && (entity instanceof EntityAnimal || entity instanceof EntityWaterAnimal)) {
|
||||
// entity.q();
|
||||
//}
|
||||
// CraftBukkit end
|
||||
|
||||
if (entity.passenger == null || !(entity.passenger instanceof EntityHuman)) {
|
||||
super.a(entity, flag);
|
||||
|
||||
Reference in new issue
Block a user