Skip to content

Commit

Permalink
Merge pull request #127 from jan64/master
Browse files Browse the repository at this point in the history
Reverts workaround from #123
  • Loading branch information
madmaxoft committed Mar 19, 2015
2 parents 12826af + 9085bd1 commit 589f52b
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 589f52b

Please sign in to comment.