mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 15:01:49 +00:00
fix
This commit is contained in:
parent
bcd3770739
commit
b947a089d3
1 changed files with 1 additions and 1 deletions
|
|
@ -191,7 +191,7 @@ bool scripting::on_item_use(Player* player, const ItemDef* item) {
|
||||||
std::string name = item->name+".use";
|
std::string name = item->name+".use";
|
||||||
if (state->getglobal(name)) {
|
if (state->getglobal(name)) {
|
||||||
state->pushinteger(player->getId());
|
state->pushinteger(player->getId());
|
||||||
if (state->callNoThrow(4)) {
|
if (state->callNoThrow(1)) {
|
||||||
return state->toboolean(-1);
|
return state->toboolean(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue