Fix crash when obj tele's Nether→Overworld @ rain

This commit is contained in:
Wuzzy 2018-01-26 19:37:00 +01:00
parent 58b9c3dbf5
commit c2d0414255
3 changed files with 3 additions and 2 deletions

View file

@ -104,6 +104,7 @@ local last_dimension = {}
-- Notifies this mod about a dimension change of a player.
-- * player: Player who changed the dimension
-- * dimension: New dimension ("overworld", "nether", "end", "void")
function mcl_worlds.dimension_change(player, dimension)
for i=1, #mcl_worlds.registered_on_dimension_change do
mcl_worlds.registered_on_dimension_change[i](player, dimension)