From b114affb9d7c05360978cca414602da7db98febb Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 20 May 2019 19:29:51 +1000 Subject: [PATCH] SPIGOT-4958: API to set map trackingPosition --- .../java/org/bukkit/craftbukkit/map/CraftMapView.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/map/CraftMapView.java b/src/main/java/org/bukkit/craftbukkit/map/CraftMapView.java index a4a605eedf..f44ef67afd 100644 --- a/src/main/java/org/bukkit/craftbukkit/map/CraftMapView.java +++ b/src/main/java/org/bukkit/craftbukkit/map/CraftMapView.java @@ -176,6 +176,16 @@ public final class CraftMapView implements MapView { return render; } + @Override + public boolean isTrackingPosition() { + return worldMap.track; + } + + @Override + public void setTrackingPosition(boolean trackingPosition) { + worldMap.track = trackingPosition; + } + @Override public boolean isUnlimitedTracking() { return worldMap.unlimitedTracking;