From cd9d8451fde640f1c5844d2dea130d3205bf8919 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Mon, 20 May 2019 19:29:51 +1000 Subject: [PATCH] SPIGOT-4958: API to set map trackingPosition By: md_5 --- .../java/org/bukkit/craftbukkit/map/CraftMapView.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/map/CraftMapView.java b/paper-server/src/main/java/org/bukkit/craftbukkit/map/CraftMapView.java index a4a605eedf..f44ef67afd 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/map/CraftMapView.java +++ b/paper-server/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;