mirror of
https://github.com/xtreme8000/CavEX.git
synced 2025-01-22 09:11:55 -05:00
Fix furnace rotation on place
This commit is contained in:
parent
94b8ae1cb3
commit
041a2e14a0
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue