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

View File

@@ -491,6 +491,9 @@ public class NMSBinding implements INMSBinding {
@Override
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);
}