mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-02-23 15:38:29 +01:00
Fixed bug when loot bags are on mapchange areas.
You will now be able to pick up a bag when you reach the loot bag without being transported to a new map. If you are transported to a new map on a loot bag, you will be offered to pick up this bag.
This commit is contained in:
@@ -233,7 +233,8 @@ public final class MovementController implements TimedMessageTask.Callback {
|
||||
controllers.mapController.handleMapEventsAfterMovement(currentMap, newPosition, player.lastPosition);
|
||||
|
||||
if (!world.model.uiSelections.isInCombat) {
|
||||
Loot loot = currentMap.getBagAt(newPosition);
|
||||
//currentMap can be outdated due to mapchange events processed above.
|
||||
Loot loot = world.model.currentMap.getBagAt(newPosition);
|
||||
if (loot != null) controllers.itemController.playerSteppedOnLootBag(loot);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user