Updated uCore, fixed some crashes

This commit is contained in:
Anuken
2018-02-22 23:19:03 -05:00
parent 56b3b469f6
commit 9ff9684a04
2 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,7 @@ allprojects {
appName = 'Mindustry'
gdxVersion = '1.9.8'
aiVersion = '1.8.1'
uCoreVersion = '23e8c1c'
uCoreVersion = 'b4757b5'
getVersionString = {
String buildVersion = getBuildVersion()

View File

@ -94,6 +94,7 @@ public class TunnelConveyor extends Block{
Tile dest = tile;
int rel = (tile.getRotation() + 2)%4;
for(int i = 0; i < maxdist; i ++){
if(dest == null) return null;
dest = dest.getNearby(rel);
if(dest != null && dest.block() instanceof TunnelConveyor && dest.getRotation() == rel
&& dest.getNearby(rel) != null