From f573b52b1bf94e6de356092648ee3b2faf26c9ad Mon Sep 17 00:00:00 2001 From: Sebastian Hartte Date: Thu, 2 Jul 2020 01:12:53 +0200 Subject: [PATCH] Be more lenient with the return value of BlockItem.tryPlace (it might be CONSUME in future versions). --- src/main/java/appeng/block/AEBaseBlockItem.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/appeng/block/AEBaseBlockItem.java b/src/main/java/appeng/block/AEBaseBlockItem.java index 93d124b3a..1e3c0220d 100644 --- a/src/main/java/appeng/block/AEBaseBlockItem.java +++ b/src/main/java/appeng/block/AEBaseBlockItem.java @@ -129,7 +129,7 @@ public class AEBaseBlockItem extends BlockItem { } ActionResultType result = super.tryPlace(context); - if (result != ActionResultType.SUCCESS) { + if (!result.isSuccessOrConsume()) { return result; } @@ -139,7 +139,7 @@ public class AEBaseBlockItem extends BlockItem { ori = tile; if (tile == null) { - return ActionResultType.SUCCESS; + return result; } if (ori.canBeRotated() && !this.blockType.hasCustomRotation()) { @@ -155,7 +155,7 @@ public class AEBaseBlockItem extends BlockItem { ori.setOrientation(forward, up); } - return ActionResultType.SUCCESS; + return result; } }