From 2106d61f6379737fc4e3f544a5666453836f8332 Mon Sep 17 00:00:00 2001 From: Faboslav Date: Fri, 15 Nov 2024 10:16:21 +0100 Subject: [PATCH] Fixed mixin --- .../fabric/mixin/StructureEntityProcessorMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabric/src/main/java/com/faboslav/friendsandfoes/fabric/mixin/StructureEntityProcessorMixin.java b/fabric/src/main/java/com/faboslav/friendsandfoes/fabric/mixin/StructureEntityProcessorMixin.java index beb231b0..60fcd09e 100644 --- a/fabric/src/main/java/com/faboslav/friendsandfoes/fabric/mixin/StructureEntityProcessorMixin.java +++ b/fabric/src/main/java/com/faboslav/friendsandfoes/fabric/mixin/StructureEntityProcessorMixin.java @@ -126,7 +126,7 @@ private void friendsandfoes_processEntities( if (ctx.structurePlacementData().shouldInitializeMobs() && entity instanceof MobEntity) { ((MobEntity) entity).initialize( serverWorldAccess, - serverWorldAccess.getLocalDifficulty(new BlockPos(entityPos)), + serverWorldAccess.getLocalDifficulty(BlockPos.ofFloored(entityPos)), SpawnReason.STRUCTURE, null, entityNbt