mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
block coords passing to on_open
This commit is contained in:
parent
98a96a9c1b
commit
60902e69ba
3 changed files with 15 additions and 5 deletions
|
|
@ -485,9 +485,17 @@ void Hud::add(HudElement element) {
|
|||
if (document) {
|
||||
if (invview) {
|
||||
auto inventory = invview->getInventory();
|
||||
scripting::on_ui_open(element.getDocument(), inventory.get());
|
||||
scripting::on_ui_open(
|
||||
element.getDocument(),
|
||||
inventory.get(),
|
||||
currentblock
|
||||
);
|
||||
} else {
|
||||
scripting::on_ui_open(element.getDocument(), nullptr);
|
||||
scripting::on_ui_open(
|
||||
element.getDocument(),
|
||||
nullptr,
|
||||
currentblock
|
||||
);
|
||||
}
|
||||
}
|
||||
elements.push_back(element);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue