Skip to content
This repository was archived by the owner on Mar 29, 2021. It is now read-only.

Commit c56d294

Browse files
committed
fixes #302
fixes #298 fixes 301
1 parent b9949c2 commit c56d294

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/mods/land.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ idrinth.land = {
130130
document.getElementById ( 'idrinth-land-gold' ).value = idrinth.settings.get ( "land#gold" );
131131
};
132132
for (var key in idrinth.settings.get ( "land", true )) {
133-
idrinth.settings.change ( 'land#' + key, parseInt ( document.getElementById ( 'idrinth-land-' + key ).value, 10 ) );
133+
if ( idrinth.settings.get( "land", true ).hasOwnProperty( key ) ) {
134+
idrinth.settings.change( 'land#' + key, parseInt( document.getElementById( 'idrinth-land-' + key ).value, 10 ) );
135+
}
134136
}
135137
var results = baseCalculator ( getRequirements () );
136138
if ( Object.keys ( results ).length === 0 ) {

0 commit comments

Comments
 (0)