mirror of
https://github.com/zDevelopers/ImageOnMap.git
synced 2024-11-29 05:26:18 +01:00
* BUG: Fix map parts items row/column indexing.
This commit is contained in:
parent
a730aab1f1
commit
7ccccb2c0e
@ -169,10 +169,7 @@ public class MapItemManager implements Listener
|
|||||||
{
|
{
|
||||||
if(map instanceof PosterMap && ((PosterMap) map).hasColumnData())
|
if(map instanceof PosterMap && ((PosterMap) map).hasColumnData())
|
||||||
{
|
{
|
||||||
return MapItemManager.createMapItem(
|
return MapItemManager.createMapItem((PosterMap) map, x, y);
|
||||||
((PosterMap) map).getMapIdAt(x, y),
|
|
||||||
I.t("{0} (row {1}, column {2})", map.getName(), y + 1, x + 1)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -213,7 +210,7 @@ public class MapItemManager implements Listener
|
|||||||
PosterMap poster = (PosterMap) map;
|
PosterMap poster = (PosterMap) map;
|
||||||
int index = poster.getIndex(item.getDurability());
|
int index = poster.getIndex(item.getDurability());
|
||||||
if(poster.hasColumnData())
|
if(poster.hasColumnData())
|
||||||
return I.t("{0} (row {1}, column {2})", map.getName(), poster.getRowAt(index) + 1, poster.getColumnAt(index) + 1);
|
return I.t("{0} (row {1}, column {2})", map.getName(), poster.getRowAt(index), poster.getColumnAt(index));
|
||||||
|
|
||||||
return I.t("{0} (part {1})", map.getName(), index + 1);
|
return I.t("{0} (part {1})", map.getName(), index + 1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user