Skip to content
This repository has been archived by the owner on Oct 22, 2022. It is now read-only.

Commit

Permalink
Fix #11, trigger neighbor block updates
Browse files Browse the repository at this point in the history
  • Loading branch information
copygirl committed Feb 14, 2022
1 parent 375a228 commit ef672a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CarriedBlock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ public static CarriedBlock Get(IWorldAccessor world, BlockPos pos, CarrySlot slo

world.BlockAccessor.SetBlock(0, pos);
world.Api.ModLoader.GetModSystem<ModSystemBlockReinforcement>()?.ClearReinforcement(pos);
world.BlockAccessor.TriggerNeighbourBlockUpdate(pos);
return carried;
}

Expand All @@ -195,6 +196,7 @@ public bool PlaceDown(IWorldAccessor world, BlockSelection selection, Entity ent
}

RestoreBlockEntityData(world, selection.Position);
world.BlockAccessor.TriggerNeighbourBlockUpdate(selection.Position);
if (entity != null) Remove(entity, Slot);
PlaySound(selection.Position, world, (entity as EntityPlayer));

Expand Down

0 comments on commit ef672a4

Please sign in to comment.