Fixed editor crash

This commit is contained in:
Anuken 2020-06-07 13:28:22 -04:00
parent 9574f742e1
commit 8993c1db04
8 changed files with 5 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 450 B

After

Width:  |  Height:  |  Size: 567 B

View File

@ -6971,7 +6971,7 @@ water-edge
sprites4.png
size: 2048,1024
format: RGBA8888
filter: Nearest,Nearest
filter: MipMapLinearLinear,Linear
repeat: none
alloy-smelter-icon-editor
rotate: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 843 KiB

After

Width:  |  Height:  |  Size: 843 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 127 KiB

View File

@ -39,7 +39,7 @@ public class MapEditor{
loading = true;
createTiles(width, height);
renderer.resize(width(), height());
renderer.resize(width, height);
loading = false;
}

View File

@ -37,6 +37,8 @@ public class MapRenderer implements Disposable{
}
public void resize(int width, int height){
updates.clear();
delayedUpdates.clear();
if(chunks != null){
for(int x = 0; x < chunks.length; x++){
for(int y = 0; y < chunks[0].length; y++){

View File

@ -29,8 +29,6 @@ abstract class LegsComp implements Posc, Rotc, Hitboxc, Flyingc, Unitc{
baseRotation = Mathf.slerpDelta(baseRotation, Mathf.angle(deltaX(), deltaY()), 0.1f);
}
Log.info(baseRotation);
float rot = baseRotation;
int count = type.legCount;
float legLength = type.legLength;

View File

@ -1,3 +1,3 @@
org.gradle.daemon=true
org.gradle.jvmargs=-Xms256m -Xmx1024m
archash=07d1bede12332e51be13f3cd6d3deabc86a95eef
archash=35b389b71386e7eb9bcffed7e61f015144fd182f