SPIGOT-4958: API to set map trackingPosition

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2019-05-20 19:29:51 +10:00
parent d8a6d9eb41
commit cd9d8451fd

View File

@ -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;