Fix corpse & chest cursor when quick pickup enabled
Closes: https://github.com/arianne/stendhal/issues/601
This commit is contained in:
parent
4610c46263
commit
ee7233d0eb
1 changed files with 5 additions and 0 deletions
|
|
@ -433,6 +433,11 @@ export class ItemContainerImplementation {
|
|||
*/
|
||||
private updateCursor(target: HTMLElement, item?: Item) {
|
||||
if (item) {
|
||||
if (this.slot === "content" && stendhal.config.getBoolean("inventory.quick-pickup")) {
|
||||
target.style.cursor = "url(" + stendhal.paths.sprites
|
||||
+ "/cursor/itempickupfromslot.png) 1 3, auto";
|
||||
return;
|
||||
}
|
||||
target.style.cursor = item.getCursor(0, 0);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue