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

Commit 5434aaf

Browse files
committed
storing request in variable
1 parent ccf127c commit 5434aaf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/mods/land.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@ idrinth.land = {
129129
}
130130
document.getElementById ( 'idrinth-land-gold' ).value = idrinth.settings.get ( "land#gold" );
131131
};
132-
for (var key in idrinth.settings.get ( "land", true )) {
133-
if ( idrinth.settings.get( "land", true ).hasOwnProperty( key ) ) {
132+
var landSettings = idrinth.settings.get( "land", true );
133+
for (var key in landSettings ) {
134+
if ( landSettings.hasOwnProperty( key ) ) {
134135
idrinth.settings.change( 'land#' + key, parseInt( document.getElementById( 'idrinth-land-' + key ).value, 10 ) );
135136
}
136137
}

0 commit comments

Comments
 (0)