forked from oerkki/voxelands
fix ondig_also_removes having wierd rotations
This commit is contained in:
parent
f9309a0b6a
commit
e539ff4112
|
@ -3281,6 +3281,8 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
|
|||
|
||||
if (selected_node_features.ondig_also_removes != v3s16(0,0,0)) {
|
||||
v3s16 p_other = selected_node.getRotation(selected_node_features.ondig_also_removes);
|
||||
if (selected_node.getRotationAngle() == 180 || selected_node.getRotationAngle() == 0)
|
||||
p_other.Z = -p_other.Z;
|
||||
v3s16 p_also = p_under + p_other;
|
||||
sendRemoveNode(p_also, 0, &far_players, 30);
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue