From f33cc23a33b5305f217507e9722d4d1b6fce2a83 Mon Sep 17 00:00:00 2001 From: RednedEpic Date: Wed, 28 Aug 2024 13:58:41 -0500 Subject: [PATCH] Ensure map type is restored when reconstructing context --- .../org/battleplugins/arena/editor/context/MapCreateContext.java | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/src/main/java/org/battleplugins/arena/editor/context/MapCreateContext.java b/plugin/src/main/java/org/battleplugins/arena/editor/context/MapCreateContext.java index 73a69dc8..868627bc 100644 --- a/plugin/src/main/java/org/battleplugins/arena/editor/context/MapCreateContext.java +++ b/plugin/src/main/java/org/battleplugins/arena/editor/context/MapCreateContext.java @@ -137,6 +137,7 @@ public void reconstructFrom(LiveCompetitionMap map) { } this.mapName = map.getName(); + this.mapType = map.getType(); this.min = Position.block(bounds.getMinX(), bounds.getMinY(), bounds.getMinZ()); this.max = Position.block(bounds.getMaxX(), bounds.getMaxY(), bounds.getMaxZ());