Merge pull request #1080 from svdgoor/no-camel-1-19-R3

Cancels Camel spawns on 1-19-R3
This commit is contained in:
Brian Fopiano 2024-03-30 17:50:44 -04:00 committed by GitHub
commit 767cca36c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -491,6 +491,9 @@ public class NMSBinding implements INMSBinding {
@Override @Override
public Entity spawnEntity(Location location, EntityType type, CreatureSpawnEvent.SpawnReason reason) { public Entity spawnEntity(Location location, EntityType type, CreatureSpawnEvent.SpawnReason reason) {
if (type == EntityType.CAMEL) {
return null;
}
return ((CraftWorld) location.getWorld()).spawn(location, type.getEntityClass(), null, reason); return ((CraftWorld) location.getWorld()).spawn(location, type.getEntityClass(), null, reason);
} }