mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
FIX: Item Floating
Items now float
This commit is contained in:
parent
1036b7368e
commit
2c7435e439
|
|
@ -81,6 +81,9 @@ void ItemEntity::tick()
|
|||
yd -= 0.04f;
|
||||
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
|
||||
move(xd, yd, zd, true);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue