Fix furnace rotation on place

This commit is contained in:
xtreme8000 2023-12-07 18:31:48 +01:00
parent 94b8ae1cb3
commit 041a2e14a0

View file

@ -96,9 +96,9 @@ static bool onItemPlace(struct server_local* s, struct item_data* it,
double dz = s->player.z - (where->z + 0.5);
if(fabs(dx) > fabs(dz)) {
metadata = (dx >= 0) ? 3 : 1;
metadata = (dx >= 0) ? 5 : 4;
} else {
metadata = (dz >= 0) ? 0 : 2;
metadata = (dz >= 0) ? 3 : 2;
}
server_world_set_block(&s->world, where->x, where->y, where->z,