FIX: Item Floating

Items now float
This commit is contained in:
MozzarellaRat 2026-03-11 22:15:05 -07:00
parent 1036b7368e
commit 2c7435e439

View file

@ -81,6 +81,9 @@ void ItemEntity::tick()
yd -= 0.04f; yd -= 0.04f;
noPhysics = checkInTile(x, (bb->y0 + bb->y1) / 2, z); noPhysics = checkInTile(x, (bb->y0 + bb->y1) / 2, z);
int tile = level->getTile(x, y, z);
if (tile == Tile::calmWater_Id) yd += 0.045f;
// 4J - added parameter here so that these don't care about colliding with other entities // 4J - added parameter here so that these don't care about colliding with other entities
move(xd, yd, zd, true); move(xd, yd, zd, true);