Mention toggle item in README, potentially fix tracking arrow showing

This commit is contained in:
SydMontague 2020-09-04 22:47:08 +02:00
parent 07991df33b
commit 26862c3b5a
2 changed files with 9 additions and 2 deletions

View File

@ -35,10 +35,14 @@ found here: https://minecraft.gamepedia.com/Map_item_format#Color_table
![Example of color conversion](./colorConversion.png)
The invisible and fixed item frame properties are only available in 1.16+. You can modify them for any item frame
by using a configurable (default a wooden hoe) items. Right click to toggle visibility and Shift+Right click to
toggle the fixed state.
### Commands
* /imagemap place <filename> [frameInvisible] [frameFixed] [size]
* Starts the placement process
* frameVisible and frameFixed are only available on 1.16+
* frameInvisible and frameFixed are only available on 1.16+
* /imagemap download <filename> <sourceURL>
* downloads an image from the given URL into the `images` folder
* /imagemap info <filename>

View File

@ -192,7 +192,9 @@ public class ImageMaps extends JavaPlugin implements Listener {
getLogger().warning(() -> "Map " + id + " referenced but does not exist. Removing map!");
return;
}
map.setTrackingPosition(false);
map.getRenderers().forEach(map::removeRenderer);
map.addRenderer(new ImageMapRenderer(image, imageMap.getX(), imageMap.getY(), imageMap.getScale()));
maps.put(imageMap, id);
});
@ -393,6 +395,7 @@ public class ImageMaps extends JavaPlugin implements Listener {
MapView map = getServer().createMap(getServer().getWorlds().get(0));
map.getRenderers().forEach(map::removeRenderer);
map.addRenderer(new ImageMapRenderer(image, x, y, getScale(image, data.getSize())));
map.setTrackingPosition(false);
MapMeta meta = ((MapMeta) item.getItemMeta());
meta.setMapView(map);