feat: blockstates

actually this time but might need to make a couple of fixes
This commit is contained in:
Fireblade
2026-05-04 21:26:13 -04:00
parent 0ee913e6e2
commit b750c4bbf4
28 changed files with 564 additions and 12 deletions
+1
View File
@@ -40,6 +40,7 @@ Tile::BlockState TripWireTile::getBlockState(LevelSource *level, int x, int y, i
if (shouldConnectTo(level, x, y, z, data, Direction::SOUTH)) state |= 0x2;
if (shouldConnectTo(level, x, y, z, data, Direction::EAST)) state |= 0x4;
if (shouldConnectTo(level, x, y, z, data, Direction::WEST)) state |= 0x8;
if ((data & MASK_POWERED) == MASK_POWERED) state |= BLOCKSTATE_POWERED_BIT;
return Tile::BlockState(state);
}