mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 06:50:12 +01:00
SPIGOT-4958: API to set map trackingPosition
This commit is contained in:
parent
401432b995
commit
b114affb9d
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue