Skip to content

Commit

Permalink
dont replace adjacent to head
Browse files Browse the repository at this point in the history
  • Loading branch information
WaitingIdly committed May 12, 2024
1 parent 00fd9e6 commit 62c1554
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public abstract class UTGolemFormationMixin
private boolean utOverrideRemovalLogic(World world, BlockPos pos, IBlockState newState, int flags, @Local(ordinal = 0) int j, @Local(ordinal = 1) int k)
{
if (!UTConfigTweaks.ENTITIES.utGolemPlacement) return true;
return k != 2 || (j != 0 && j != 2);
return (k != 0 && k != 2) || (j != 0 && j != 2);
}

@ModifyReceiver(method = {"getGolemPattern", "getGolemBasePattern"}, at = @At(value = "INVOKE", target = "Lnet/minecraft/block/state/pattern/FactoryBlockPattern;build()Lnet/minecraft/block/state/pattern/BlockPattern;"))
Expand Down

0 comments on commit 62c1554

Please sign in to comment.