Skip to content

Commit 1bf16bc

Browse files
committed
fix: fix bug when source block state is null
1 parent e45e72e commit 1bf16bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/space/ajcool/paintbrush/item/PaintbrushItem.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,8 @@ else if (forwardLayerMismatch && (targetValue == 3 || targetValue == 5 || target
345345

346346
copySourceBlockStatePropertiesToTarget(sourcePaintBlockState, targetBlockState);
347347

348-
349-
blockStates.put(pos, sourcePaintBlockState);
348+
if (sourcePaintBlockState != null)
349+
blockStates.put(pos, sourcePaintBlockState);
350350
}
351351

352352
if (blockStates.isEmpty())

0 commit comments

Comments
 (0)