From a66080d803670bfd5507066a301a843c68c59122 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Wed, 25 Aug 2021 14:06:12 +0100 Subject: [PATCH] Fix build, add note --- .../main/java/com/sk89q/worldedit/world/block/BlockState.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockState.java b/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockState.java index 4511b7b38..6ffae96ab 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockState.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockState.java @@ -341,7 +341,8 @@ public class BlockState implements BlockStateHolder, Pattern { BlockType type = this.getBlockType(); // Lazily initialize the map Map map = Maps.asMap(type.getPropertiesSet(), (Function) this::getState); - return Collections.unmodifiableMap(map); + //noinspection RedundantCast - This is required for compilation, etc. + return Collections.unmodifiableMap((Map, Object>) map); //FAWE end }