Add methods to CLIPlatform

Dieser Commit ist enthalten in:
dordsor21 2021-12-28 22:58:25 +00:00
Ursprung f236934a39
Commit f6319d36a1
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -26,6 +26,7 @@ import com.sk89q.worldedit.entity.Player;
import com.sk89q.worldedit.extension.platform.AbstractPlatform; import com.sk89q.worldedit.extension.platform.AbstractPlatform;
import com.sk89q.worldedit.extension.platform.Capability; import com.sk89q.worldedit.extension.platform.Capability;
import com.sk89q.worldedit.extension.platform.Preference; import com.sk89q.worldedit.extension.platform.Preference;
import com.sk89q.worldedit.internal.Constants;
import com.sk89q.worldedit.util.SideEffect; import com.sk89q.worldedit.util.SideEffect;
import com.sk89q.worldedit.world.DataFixer; import com.sk89q.worldedit.world.DataFixer;
import com.sk89q.worldedit.world.World; import com.sk89q.worldedit.world.World;
@ -169,6 +170,16 @@ class CLIPlatform extends AbstractPlatform {
return (_a, _b, _c) -> NullRelighter.INSTANCE; return (_a, _b, _c) -> NullRelighter.INSTANCE;
} }
@Override
public int getVersionMinY() {
return dataVersion >= Constants.DATA_VERSION_MC_1_18 ? -64 : 0;
}
@Override
public int getVersionMaxY() {
return dataVersion >= Constants.DATA_VERSION_MC_1_18 ? 319 : 255;
}
public void addWorld(World world) { public void addWorld(World world) {
worlds.add(world); worlds.add(world);
} }