mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 12:42:26 +00:00
46 files changed
+149
-141
No files matched your search
@@ -186,7 +186,7 @@ public class ForgeEventFactory
|
||||
{
|
||||
Result result = canEntitySpawn(entity, world, x, y, z, spawner);
|
||||
if (result == Result.DEFAULT)
|
||||
return entity.func_213380_a(world, SpawnReason.SPAWNER) || !entity.isNotColliding(world); // vanilla logic
|
||||
return entity.canSpawn(world, SpawnReason.SPAWNER) || !entity.isNotColliding(world); // vanilla logic
|
||||
else
|
||||
return result == Result.ALLOW;
|
||||
}
|
||||
@@ -372,7 +372,7 @@ public class ForgeEventFactory
|
||||
|
||||
if (event.getResult() == Result.ALLOW)
|
||||
{
|
||||
if (player.abilities.isCreativeMode)
|
||||
if (player.playerAbilities.isCreativeMode)
|
||||
return new ActionResult<ItemStack>(ActionResultType.SUCCESS, stack);
|
||||
|
||||
stack.shrink(1);
|
||||
|
||||
Reference in new issue
Block a user