RoadLine drop correct metadata when destroyed via onNeighborBlockChange (#75)

This commit is contained in:
PLASMAchicken authored and GitHub committed 2025-12-12 01:22:02 +01:00
1 parent cc9b8ab774
commit c3e1675ac8
1 file changed
+1 -1
@@ -62,7 +62,7 @@ public class BlockRoadLine extends BlockCarvable {
if (par1World.isRemote) return;
if (!this.canPlaceBlockAt(par1World, par2, par3, par4)) {
this.dropBlockAsItem(par1World, par2, par3, par4, 0, 0);
this.dropBlockAsItem(par1World, par2, par3, par4, par1World.getBlockMetadata(par2, par3, par4), 0);
par1World.setBlockToAir(par2, par3, par4);
}