Updated uCore, fixed some crashes
This commit is contained in:
@@ -25,7 +25,7 @@ allprojects {
|
|||||||
appName = 'Mindustry'
|
appName = 'Mindustry'
|
||||||
gdxVersion = '1.9.8'
|
gdxVersion = '1.9.8'
|
||||||
aiVersion = '1.8.1'
|
aiVersion = '1.8.1'
|
||||||
uCoreVersion = '23e8c1c'
|
uCoreVersion = 'b4757b5'
|
||||||
|
|
||||||
getVersionString = {
|
getVersionString = {
|
||||||
String buildVersion = getBuildVersion()
|
String buildVersion = getBuildVersion()
|
||||||
|
|||||||
@@ -94,6 +94,7 @@ public class TunnelConveyor extends Block{
|
|||||||
Tile dest = tile;
|
Tile dest = tile;
|
||||||
int rel = (tile.getRotation() + 2)%4;
|
int rel = (tile.getRotation() + 2)%4;
|
||||||
for(int i = 0; i < maxdist; i ++){
|
for(int i = 0; i < maxdist; i ++){
|
||||||
|
if(dest == null) return null;
|
||||||
dest = dest.getNearby(rel);
|
dest = dest.getNearby(rel);
|
||||||
if(dest != null && dest.block() instanceof TunnelConveyor && dest.getRotation() == rel
|
if(dest != null && dest.block() instanceof TunnelConveyor && dest.getRotation() == rel
|
||||||
&& dest.getNearby(rel) != null
|
&& dest.getNearby(rel) != null
|
||||||
|
|||||||
Reference in New Issue
Block a user