Skip to content

Commit

Permalink
Don't disable tamper checking once super menu is enabled (#503)
Browse files Browse the repository at this point in the history
As suggested in #501. 

Don't have a strong opinion on whether this should be done, but I think it should at least be considered. Oh, and fixes #316.
  • Loading branch information
pppery committed Apr 10, 2023
1 parent 9b9f728 commit 99f0b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ Game.prototype.secureObject = function(object, objecttype) {
}
if(prop[0] == "_"){
this.secureProperty(object, prop, objecttype);
} else if (!this._superMenuActivated && typeof object[prop] == "function") {
} else if (typeof object[prop] == "function") {
Object.defineProperty(object, prop, {
configurable:false,
writable:false
Expand Down

0 comments on commit 99f0b8b

Please sign in to comment.