fix ondig_also_removes having wierd rotations

This commit is contained in:
darkrose 2015-06-21 06:14:21 +10:00
parent f9309a0b6a
commit e539ff4112
1 changed files with 2 additions and 0 deletions

View File

@ -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);
{