-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for lowres lighting and map-purging/saving, tweak default settings
- Loading branch information
Showing
10 changed files
with
102 additions
and
25 deletions.
There are no files selected for viewing
Submodule BlueMapVue
updated
7 files
+1 −1 | BlueMapWeb | |
+3 −1 | public/lang/de.js | |
+3 −1 | public/lang/en.js | |
+6 −1 | src/components/Menu/SettingsMenu.vue | |
+6 −5 | src/components/Menu/Slider.vue | |
+3 −1 | src/i18n/fallback.js | |
+22 −1 | src/js/BlueMapApp.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/rendermanager/MapSaveTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package de.bluecolored.bluemap.common.rendermanager; | ||
|
||
import de.bluecolored.bluemap.core.map.BmMap; | ||
|
||
import java.util.concurrent.atomic.AtomicBoolean; | ||
|
||
public class MapSaveTask implements RenderTask { | ||
|
||
private final BmMap map; | ||
private final AtomicBoolean saved; | ||
|
||
public MapSaveTask(BmMap map) { | ||
this.map = map; | ||
this.saved = new AtomicBoolean(false); | ||
} | ||
|
||
@Override | ||
public void doWork() { | ||
if (this.saved.compareAndSet(false, true)) { | ||
map.save(); | ||
} | ||
} | ||
|
||
@Override | ||
public boolean hasMoreWork() { | ||
return !this.saved.get(); | ||
} | ||
|
||
@Override | ||
public void cancel() { | ||
this.saved.set(true); | ||
} | ||
|
||
@Override | ||
public String getDescription() { | ||
return "Save map '" + map.getId() + "'"; | ||
} | ||
|
||
@Override | ||
public boolean contains(RenderTask task) { | ||
if (this == task) return true; | ||
if (task == null) return false; | ||
if (getClass() != task.getClass()) return false; | ||
MapSaveTask other = (MapSaveTask) task; | ||
return map.getId().equals(other.map.getId()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters