mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 03:55:18 -04:00
Fix train rails with custom blocks.
This commit is contained in:
parent
7fde09b296
commit
48f3e1486d
@ -35,7 +35,7 @@ namespace MCGalaxy.Blocks.Physics {
|
||||
{
|
||||
ExtBlock below = lvl.GetBlock((ushort)(x + dx),(ushort)(y + dy - 1), (ushort)(z + dz));
|
||||
ExtBlock block = lvl.GetBlock((ushort)(x + dx), (ushort)(y + dy), (ushort)(z + dz));
|
||||
bool isRails = lvl.Props[below.BlockID].IsRails;
|
||||
bool isRails = lvl.Props[below.Index].IsRails;
|
||||
|
||||
if (isRails && (block.BlockID == Block.Air || block.BlockID == Block.Water)
|
||||
&& !lvl.listUpdateExists.Get(x + dx, y + dy, z + dz)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user