Fixed error when getting terrain tag when the player moves between connected maps

This commit is contained in:
Maruno17
2022-07-10 19:05:54 +01:00
parent 473d4cbb67
commit 72e45ab137

View File

@@ -228,7 +228,7 @@ class Game_Player < Game_Character
end
def pbTerrainTag(countBridge = false)
return $map_factory.getTerrainTag(self.map.map_id, @x, @y, countBridge) if $map_factory
return $map_factory.getTerrainTagFromCoords(self.map.map_id, @x, @y, countBridge) if $map_factory
return $game_map.terrain_tag(@x, @y, countBridge)
end