mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Pass pointed_thing to on_punch and minetest.register_on_punchnode callbacks
This commit is contained in:
parent
cd7e8372f3
commit
76d4396fa1
7 changed files with 28 additions and 38 deletions
|
@ -2918,7 +2918,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
|
|||
m_emerge->enqueueBlockEmerge(peer_id, getNodeBlockPos(p_above), false);
|
||||
}
|
||||
if(n.getContent() != CONTENT_IGNORE)
|
||||
m_script->node_on_punch(p_under, n, playersao);
|
||||
m_script->node_on_punch(p_under, n, playersao, pointed);
|
||||
// Cheat prevention
|
||||
playersao->noCheatDigStart(p_under);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue