From 6301a7adb9e1e8762fd90d17dc7c3f3413dca293 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Mon, 23 Aug 2021 21:28:06 +0100 Subject: [PATCH] Deprecate and add the warnings for BlockType#getState as it is broken --- .../main/java/com/sk89q/worldedit/world/block/BlockType.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockType.java b/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockType.java index 7bbabfc35..5ed34c83e 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockType.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockType.java @@ -269,7 +269,9 @@ public class BlockType implements Keyed, Pattern { * Gets a state of this BlockType with the given properties. * * @return The state, if it exists + * @deprecated Not working. Not necessarily for removal, but WARNING DO NOT USE FOR NOW */ + @Deprecated(forRemoval = true) public BlockState getState(Map, Object> key) { //FAWE start - use ids & btp (block type property) int id = getInternalId();