Increased bridge range / Bugfixes

This commit is contained in:
Anuken
2018-07-14 09:26:34 -04:00
parent 302ae0a83c
commit 0db6020231
7 changed files with 24 additions and 31 deletions
@@ -9,18 +9,12 @@ import io.anuke.ucore.core.Events;
import io.anuke.ucore.core.Settings;
public class ContentDatabase{
/**
* Maps unlockable type names to a set of unlocked content.
*/
/** Maps unlockable type names to a set of unlocked content.*/
private ObjectMap<String, ObjectSet<String>> unlocked = new ObjectMap<>();
/**
* Whether unlockables have changed since the last save.
*/
/** Whether unlockables have changed since the last save.*/
private boolean dirty;
/**
* Returns whether or not this piece of content is unlocked yet.
*/
/** Returns whether or not this piece of content is unlocked yet.*/
public boolean isUnlocked(UnlockableContent content){
if(!unlocked.containsKey(content.getContentTypeName())){
unlocked.put(content.getContentTypeName(), new ObjectSet<>());
@@ -57,16 +51,12 @@ public class ContentDatabase{
return ret;
}
/**
* Returns whether unlockables have changed since the last save.
*/
/** Returns whether unlockables have changed since the last save.*/
public boolean isDirty(){
return dirty;
}
/**
* Clears all unlocked content.
*/
/** Clears all unlocked content.*/
public void reset(){
unlocked.clear();
dirty = true;