another attempt at mob spawners - 3rd time's the charm?
Dieser Commit ist enthalten in:
Ursprung
696349884b
Commit
d39c363e5c
@ -85,7 +85,7 @@ public class TileEntityMobSpawner extends TileEntity {
|
|||||||
|
|
||||||
entityliving.setPositionRotation(d3, d4, d5, this.world.random.nextFloat() * 360.0F, 0.0F);
|
entityliving.setPositionRotation(d3, d4, d5, this.world.random.nextFloat() * 360.0F, 0.0F);
|
||||||
if ((entityliving instanceof EntityLiving && ((EntityLiving)entityliving).d()) ||
|
if ((entityliving instanceof EntityLiving && ((EntityLiving)entityliving).d()) ||
|
||||||
(entityliving.world.containsEntity(entityliving.boundingBox) && entityliving.world.getEntities(entityliving, entityliving.boundingBox).size() == 0 && !entityliving.world.c(entityliving.boundingBox))) {
|
(!(entityliving instanceof EntityLiving) && entityliving.world.containsEntity(entityliving.boundingBox) && entityliving.world.getEntities(entityliving, entityliving.boundingBox).size() == 0 && !entityliving.world.c(entityliving.boundingBox))) {
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
// CraftBukkit - added a reason for spawning this creature
|
// CraftBukkit - added a reason for spawning this creature
|
||||||
this.world.addEntity(entityliving, SpawnReason.SPAWNER);
|
this.world.addEntity(entityliving, SpawnReason.SPAWNER);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren