Resolving issues #16 and #20

This commit is contained in:
Song Minjae
2017-04-24 02:23:13 +09:00
parent 6399c2d66b
commit 5cd5ebbea3
21 changed files with 158 additions and 76 deletions

View File

@@ -17,9 +17,9 @@ object LandUtil {
/**
* Get owner ID as an Actor/Faction
*/
fun resolveOwner(id: TileAddress): Any =
if (id < 0x80000000L)
Terrarum.ingame!!.getActorByID(id.toInt())
fun resolveOwner(id: Int): Any =
if (id >= 0)
Terrarum.ingame!!.getActorByID(id)
else
FactionCodex.getFactionByID(id)
}