Skip to content

Commit

Permalink
Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EATSTEAK committed Feb 3, 2018
1 parent d80aaa3 commit 79de439
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions auto_include.ms
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ if(import('MenuOpen'.player()) != true) {

create_virtualchest(@chest)
popen_virtualchest(@id)
}
)
proc(_itemmenu_update, @array,
export('MenuOpen'.player(), true)
Expand All @@ -49,10 +50,7 @@ proc(_itemmenu_update, @array,
foreach(@key:@value in @items) {
array_set(@chest, @key, @value['item'])
}
msg(@chest)
create_virtualchest(@chest)
popen_virtualchest(@id)
}
update_virtualchest(@chest)
)


Expand Down
1 change: 1 addition & 0 deletions main.ms
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ bind(inventory_click, null, null, @e,
if(import('MenuOpen'.player())) { # Itemmenu is Open
cancel() # Cancel Click
@number = @e['rawslot']
if(!(array_index_exists(@array['menu'], @number) && @number >= 0), die())
if(array_index_exists(@array['menu'][@number], to_lower(@e[clicktype]))) {
execute(@array['menu'][@number][to_lower(@e[clicktype])])
} else {
Expand Down

0 comments on commit 79de439

Please sign in to comment.