From 208929c378be80736218a50c4f9418bbde7db98d Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Tue, 23 Apr 2019 16:16:26 +1000 Subject: [PATCH] Fix ItemType.getBlockType --- .../java/com/sk89q/worldedit/world/item/ItemType.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/world/item/ItemType.java b/worldedit-core/src/main/java/com/sk89q/worldedit/world/item/ItemType.java index ecaeed331..a599d6a38 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/world/item/ItemType.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/world/item/ItemType.java @@ -94,14 +94,14 @@ public class ItemType implements RegistryItem { */ @Nullable public BlockType getBlockType() { - return this.blockType; - } - - public void setBlockType(BlockType blockType) { if (!initBlockType) { initBlockType = true; this.blockType = BlockTypes.get(this.id); } + return this.blockType; + } + + public void setBlockType(BlockType blockType) { this.blockType = blockType; }