From f31c2e65ea7429b8812c0aca5297e2b575740119 Mon Sep 17 00:00:00 2001 From: Maddy Miller Date: Sun, 7 Jul 2024 16:31:13 +1000 Subject: [PATCH] Remove <1.16 //drawsel max size handling (#2572) --- .../com/sk89q/worldedit/internal/cui/ServerCUIHandler.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/internal/cui/ServerCUIHandler.java b/worldedit-core/src/main/java/com/sk89q/worldedit/internal/cui/ServerCUIHandler.java index 17a1ce642b..27042c23e4 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/internal/cui/ServerCUIHandler.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/internal/cui/ServerCUIHandler.java @@ -23,7 +23,6 @@ import com.sk89q.worldedit.LocalSession; import com.sk89q.worldedit.WorldEdit; import com.sk89q.worldedit.entity.Player; -import com.sk89q.worldedit.extension.platform.Capability; import com.sk89q.worldedit.math.BlockVector3; import com.sk89q.worldedit.regions.CuboidRegion; import com.sk89q.worldedit.regions.RegionSelector; @@ -47,10 +46,7 @@ private ServerCUIHandler() { } public static int getMaxServerCuiSize() { - int dataVersion = WorldEdit.getInstance().getPlatformManager().queryCapability(Capability.GAME_HOOKS).getDataVersion(); - - // 1.16 increased maxSize to 48. - return dataVersion >= 2566 ? 48 : 32; + return 48; } /**