prevent spawning camels on 1.19.R3

This commit is contained in:
svdgoor 2024-03-18 17:28:08 +01:00
parent a01d27d273
commit ccbea89253

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