mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-14 01:37:36 +07:00
Fixed #9728
This commit is contained in:
@ -66,7 +66,7 @@ public class Trail{
|
|||||||
y2 = items[i + 4];
|
y2 = items[i + 4];
|
||||||
w2 = items[i + 5];
|
w2 = items[i + 5];
|
||||||
|
|
||||||
if(i == 0){
|
if(i == 0 && points.size >= (length - 1) * 3){
|
||||||
x1 = Mathf.lerp(x1, x2, counter);
|
x1 = Mathf.lerp(x1, x2, counter);
|
||||||
y1 = Mathf.lerp(y1, y2, counter);
|
y1 = Mathf.lerp(y1, y2, counter);
|
||||||
w1 = Mathf.lerp(w1, w2, counter);
|
w1 = Mathf.lerp(w1, w2, counter);
|
||||||
|
@ -164,9 +164,9 @@ public class ConstructBlock extends Block{
|
|||||||
public boolean wasConstructing, activeDeconstruct;
|
public boolean wasConstructing, activeDeconstruct;
|
||||||
public float constructColor;
|
public float constructColor;
|
||||||
|
|
||||||
private float[] accumulator;
|
private @Nullable float[] accumulator;
|
||||||
private float[] totalAccumulator;
|
private @Nullable float[] totalAccumulator;
|
||||||
private int[] itemsLeft;
|
private @Nullable int[] itemsLeft;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getDisplayName(){
|
public String getDisplayName(){
|
||||||
@ -480,6 +480,7 @@ public class ConstructBlock extends Block{
|
|||||||
if(acsize != -1){
|
if(acsize != -1){
|
||||||
accumulator = new float[acsize];
|
accumulator = new float[acsize];
|
||||||
totalAccumulator = new float[acsize];
|
totalAccumulator = new float[acsize];
|
||||||
|
itemsLeft = new int[acsize];
|
||||||
for(int i = 0; i < acsize; i++){
|
for(int i = 0; i < acsize; i++){
|
||||||
accumulator[i] = read.f();
|
accumulator[i] = read.f();
|
||||||
totalAccumulator[i] = read.f();
|
totalAccumulator[i] = read.f();
|
||||||
|
Reference in New Issue
Block a user