mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2025-04-24 10:11:05 +00:00
Fixed clickables
This commit is contained in:
parent
5a4a4da5ad
commit
2d56c25917
4 changed files with 6 additions and 3 deletions
js
|
@ -180,7 +180,7 @@ function buyBuyable(layer, id) {
|
|||
function clickClickable(layer, id) {
|
||||
if (!player[layer].unlocked) return
|
||||
if (!tmp[layer].clickables[id].unlocked) return
|
||||
if (!tmp[layer].clickables[id].getCanClick) return
|
||||
if (!tmp[layer].clickables[id].canClick) return
|
||||
|
||||
run(layers[layer].clickables[id].onClick, layers[layer].clickables[id])
|
||||
updateClickableTemp(layer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue