Add origin dimension to dimension change hook

This commit is contained in:
Nils Dagsson Moskopp 2021-12-05 00:46:40 +01:00
parent dd347c50c5
commit 28e4622712
No known key found for this signature in database
GPG Key ID: A3BC671C35191080
1 changed files with 1 additions and 1 deletions

View File

@ -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