From 2213d44289d605568971486c06a9da2679378b2f Mon Sep 17 00:00:00 2001 From: Lixfel Date: Wed, 13 Sep 2023 21:40:44 +0200 Subject: [PATCH] Fix getBlockEntity args --- .../java/com/moulberry/axiom/packet/ChunkSectionModifier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/moulberry/axiom/packet/ChunkSectionModifier.java b/src/main/java/com/moulberry/axiom/packet/ChunkSectionModifier.java index f55e237..1ace875 100644 --- a/src/main/java/com/moulberry/axiom/packet/ChunkSectionModifier.java +++ b/src/main/java/com/moulberry/axiom/packet/ChunkSectionModifier.java @@ -109,7 +109,7 @@ public class ChunkSectionModifier { private static final Reflection.Method newBlockEntity = Reflection.getTypedMethod(EntityBlock.class, BlockEntity.class, BlockPos.class, BlockState.class); private static final Reflection.Method addAndRegisterBlockEntity = Reflection.getMethod(LevelChunk.class, BlockEntity.class); private void setBlockEntity(BlockState state, BlockPos pos) { - BlockEntity blockEntity = getBlockEntity.invoke(chunk, pos, LevelChunk.EntityCreationType.CHECK); + BlockEntity blockEntity = getBlockEntity.invoke(chunk, pos); if (blockEntity != null) { if (isValid.invoke(getType.invoke(blockEntity), state)) {