Skip to content

Commit

Permalink
Reverts workaround from cuberite#123
Browse files Browse the repository at this point in the history
  • Loading branch information
36451 committed Mar 19, 2015
1 parent 539ad33 commit 9085bd1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions difficulties.lua
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,8 @@ local IsEntityBlockedInPeaceful =
}

function OnSpawningEntity(World, Entity)
local Ent = tolua.cast(Entity, "cEntity")
if (GetWorldDifficulty(World) == 0 and Ent:IsMob() == true) then
return IsEntityBlockedInPeaceful[Ent:GetClass()]
if GetWorldDifficulty(World) == 0 then
return IsEntityBlockedInPeaceful[Entity:GetClass()]
end
return false
end

0 comments on commit 9085bd1

Please sign in to comment.