Merge pull request #177 from LynxStar/patch/mini-dungeons #patch
Fix mini-dungeon portals for parties
This commit is contained in:
@@ -133,6 +133,23 @@ public class AbstractPlayerInteraction {
|
|||||||
warpParty(id, portalId, mapid, mapid);
|
warpParty(id, portalId, mapid, mapid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void warpParty(int map, String portalName) {
|
||||||
|
|
||||||
|
int mapid = getMapId();
|
||||||
|
var warpMap = c.getChannelServer().getMapFactory().getMap(map);
|
||||||
|
|
||||||
|
var portal = warpMap.getPortal(portalName);
|
||||||
|
|
||||||
|
if (portal == null) {
|
||||||
|
portal = warpMap.getPortal(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
var portalId = portal.getId();
|
||||||
|
|
||||||
|
warpParty(map, portalId, mapid, mapid);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public void warpParty(int id, int fromMinId, int fromMaxId) {
|
public void warpParty(int id, int fromMinId, int fromMaxId) {
|
||||||
warpParty(id, 0, fromMinId, fromMaxId);
|
warpParty(id, 0, fromMinId, fromMaxId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user