forked from Mineclonia/Mineclonia
Add origin dimension to dimension change hook
This commit is contained in:
parent
dd347c50c5
commit
28e4622712
|
@ -113,7 +113,7 @@ local last_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)
|
||||
mcl_worlds.registered_on_dimension_change[i](player, dimension, last_dimension[player:get_player_name()])
|
||||
last_dimension[player:get_player_name()] = dimension
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue