Headless cleanup
This commit is contained in:
@@ -123,7 +123,7 @@ public abstract class UnlockableContent extends MappableContent{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean unlocked(){
|
public boolean unlocked(){
|
||||||
if(net.client()) return state.rules.researched.contains(name);
|
if(net != null && net.client()) return state.rules.researched.contains(name);
|
||||||
return unlocked || alwaysUnlocked;
|
return unlocked || alwaysUnlocked;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ public class ParticleWeather extends Weather{
|
|||||||
|
|
||||||
//load noise texture
|
//load noise texture
|
||||||
//TODO mod support
|
//TODO mod support
|
||||||
if(drawNoise){
|
if(drawNoise && Core.assets != null){
|
||||||
Core.assets.load("sprites/" + noisePath + ".png", Texture.class);
|
Core.assets.load("sprites/" + noisePath + ".png", Texture.class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -356,7 +356,7 @@ public class Block extends UnlockableContent{
|
|||||||
current = entity -> entity.liquids == null ? Liquids.water : entity.liquids.current();
|
current = entity -> entity.liquids == null ? Liquids.water : entity.liquids.current();
|
||||||
}
|
}
|
||||||
bars.add("liquid", entity -> new Bar(() -> entity.liquids.get(current.get(entity)) <= 0.001f ? Core.bundle.get("bar.liquid") : current.get(entity).localizedName,
|
bars.add("liquid", entity -> new Bar(() -> entity.liquids.get(current.get(entity)) <= 0.001f ? Core.bundle.get("bar.liquid") : current.get(entity).localizedName,
|
||||||
() -> current.get(entity).barColor(), () -> entity.liquids.get(current.get(entity)) / liquidCapacity));
|
() -> current.get(entity).barColor(), () -> entity == null || entity.liquids == null ? 0f : entity.liquids.get(current.get(entity)) / liquidCapacity));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(hasPower && consumes.hasPower()){
|
if(hasPower && consumes.hasPower()){
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||||
archash=7090a07ce5d02dcb697f6c5a8d1fb6e0a00de45f
|
archash=f316225521c91df6c132b13fa2044d969ec39231
|
||||||
|
|||||||
Reference in New Issue
Block a user