From f60692f6d8edccd66c2de2b9c93cb1c5c1e61055 Mon Sep 17 00:00:00 2001 From: Theta-Dev Date: Sun, 14 Mar 2021 22:52:27 +0100 Subject: [PATCH] Small fix (supportingBlock != null) --- .../java/thetadev/constructionwand/wand/undo/PlaceSnapshot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/thetadev/constructionwand/wand/undo/PlaceSnapshot.java b/src/main/java/thetadev/constructionwand/wand/undo/PlaceSnapshot.java index a53c9c0..63fae19 100644 --- a/src/main/java/thetadev/constructionwand/wand/undo/PlaceSnapshot.java +++ b/src/main/java/thetadev/constructionwand/wand/undo/PlaceSnapshot.java @@ -113,7 +113,7 @@ private static BlockState getPlaceBlockstate(World world, PlayerEntity player, B if(blockState.getBlock() == Blocks.AIR || !blockState.isValidPosition(world, pos)) return null; // Copy block properties from supporting block - if(targetMode) { + if(targetMode && supportingBlock != null) { // Block properties to be copied (alignment/rotation properties) for(Property property : new Property[]{