Ignore creative mode for phantom

This commit is contained in:
Sotr
2019-03-06 22:53:47 +08:00
parent 40ec0c5bd4
commit b738f37fc1

View File

@@ -29,7 +29,7 @@ public class MobSpawnerPhantom {
while (iterator.hasNext()) {
EntityHuman entityhuman = (EntityHuman) iterator.next();
if (!entityhuman.isSpectator()) {
if (!entityhuman.isSpectator() && !((EntityPlayer) entityhuman).playerInteractManager.isCreative()) { // Akarin - ignore creative mode
BlockPosition blockposition = new BlockPosition(entityhuman);
if (!world.worldProvider.g() || blockposition.getY() >= world.getSeaLevel() && world.e(blockposition)) {