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

Commit

Permalink
storing request in variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ardenian committed Apr 10, 2017
1 parent ccf127c commit 5434aaf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mods/land.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,9 @@ idrinth.land = {
}
document.getElementById ( 'idrinth-land-gold' ).value = idrinth.settings.get ( "land#gold" );
};
for (var key in idrinth.settings.get ( "land", true )) {
if ( idrinth.settings.get( "land", true ).hasOwnProperty( key ) ) {
var landSettings = idrinth.settings.get( "land", true );
for (var key in landSettings ) {
if ( landSettings.hasOwnProperty( key ) ) {
idrinth.settings.change( 'land#' + key, parseInt( document.getElementById( 'idrinth-land-' + key ).value, 10 ) );
}
}
Expand Down

0 comments on commit 5434aaf

Please sign in to comment.