mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-05-28 17:06:34 +03:00
Fixed beam drill speed bar not reflecting power
This commit is contained in:
@@ -439,10 +439,10 @@ public class JoinDialog extends BaseDialog{
|
||||
}
|
||||
|
||||
if(!serverSearch.isEmpty() && !(group.name.toLowerCase().contains(serverSearch)
|
||||
|| res.name.toLowerCase().contains(serverSearch)
|
||||
|| res.description.toLowerCase().contains(serverSearch)
|
||||
|| res.mapname.toLowerCase().contains(serverSearch)
|
||||
|| (res.modeName != null && res.modeName.toLowerCase().contains(serverSearch)))) return;
|
||||
|| Strings.stripColors(res.name.toLowerCase()).contains(serverSearch)
|
||||
|| Strings.stripColors(res.description.toLowerCase()).contains(serverSearch)
|
||||
|| Strings.stripColors(res.mapname.toLowerCase()).contains(serverSearch)
|
||||
|| (res.modeName != null && Strings.stripColors(res.modeName.toLowerCase()).contains(serverSearch)))) return;
|
||||
|
||||
if(groupTable[0] == null){
|
||||
addHeader(groupTable, group, hidden, favorite, true);
|
||||
|
||||
@@ -47,7 +47,6 @@ public class CanvasBlock extends Block{
|
||||
if(build.data.length == bytes.length){
|
||||
System.arraycopy(bytes, 0, build.data, 0, bytes.length);
|
||||
build.invalidated = true;
|
||||
build.updateTexture();
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -154,13 +153,6 @@ public class CanvasBlock extends Block{
|
||||
}
|
||||
}
|
||||
|
||||
public void setPixel(int x, int y, int index){
|
||||
if(x >= 0 && y >= 0 && x < canvasSize && y < canvasSize && index >= 0 && index < palette.length){
|
||||
setByte(data, (y * canvasSize + x) * bitsPerPixel, index);
|
||||
invalidated = true;
|
||||
}
|
||||
}
|
||||
|
||||
public double getPixel(int pos){
|
||||
if(pos >= 0 && pos < canvasSize * canvasSize){
|
||||
return getByte(data, pos * bitsPerPixel);
|
||||
@@ -168,13 +160,6 @@ public class CanvasBlock extends Block{
|
||||
return Double.NaN;
|
||||
}
|
||||
|
||||
public int getPixel(int x, int y){
|
||||
if(x >= 0 && y >= 0 && x < canvasSize && y < canvasSize){
|
||||
return getByte(data, (y * canvasSize + x) * bitsPerPixel);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void updateTexture(){
|
||||
if(headless || (texture != null && !invalidated)) return;
|
||||
|
||||
|
||||
@@ -248,7 +248,7 @@ public class BeamDrill extends Block{
|
||||
float multiplier = Mathf.lerp(1f, optionalBoostIntensity, optionalEfficiency);
|
||||
float drillTime = getDrillTime(lastItem);
|
||||
boostWarmup = Mathf.lerpDelta(boostWarmup, optionalEfficiency, 0.1f);
|
||||
lastDrillSpeed = (facingAmount * multiplier * timeScale) / drillTime;
|
||||
lastDrillSpeed = (facingAmount * multiplier * timeScale) / drillTime * efficiency;
|
||||
|
||||
time += edelta() * multiplier;
|
||||
|
||||
|
||||
@@ -26,4 +26,4 @@ org.gradle.caching=true
|
||||
org.gradle.internal.http.socketTimeout=100000
|
||||
org.gradle.internal.http.connectionTimeout=100000
|
||||
android.enableR8.fullMode=false
|
||||
archash=3308db9c34
|
||||
archash=1abdd6e4bf
|
||||
|
||||
@@ -6,10 +6,10 @@ include 'desktop', 'core', 'server', 'ios', 'annotations', 'tools', 'tests'
|
||||
|
||||
def hasSdk = System.getenv("ANDROID_HOME") != null
|
||||
|
||||
def localProperties = new Properties()
|
||||
if(new File(settingsDir, 'local.properties').exists()){
|
||||
def properties = new Properties()
|
||||
properties.load(new File(settingsDir, 'local.properties').newDataInputStream())
|
||||
if(properties.containsKey("sdk.dir")) hasSdk = true
|
||||
localProperties.load(new File(settingsDir, 'local.properties').newDataInputStream())
|
||||
if(localProperties.containsKey("sdk.dir")) hasSdk = true
|
||||
}
|
||||
|
||||
if(System.getenv("JITPACK") == "true") hasSdk = false
|
||||
@@ -20,6 +20,10 @@ if(hasSdk){
|
||||
println("No Android SDK found. Skipping Android module.")
|
||||
}
|
||||
|
||||
if(hasProperty("localRhino") || localProperties.getOrDefault("localRhino", "false") == "true"){
|
||||
includeBuild("../rhino")
|
||||
}
|
||||
|
||||
if(!hasProperty("noLocalArc")){
|
||||
if(new File(rootDir.parent, 'Arc').exists()){
|
||||
println("Compiling with localArc")
|
||||
|
||||
Reference in New Issue
Block a user