mirror of
https://github.com/SydMontague/ImageMaps.git
synced 2025-02-20 14:01:20 +01:00
Mention toggle item in README, potentially fix tracking arrow showing
This commit is contained in:
parent
07991df33b
commit
26862c3b5a
@ -35,10 +35,14 @@ found here: https://minecraft.gamepedia.com/Map_item_format#Color_table
|
||||
|
||||

|
||||
|
||||
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>
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user