Backport of fixed lighting + overflow crash fix

This commit is contained in:
Anuken
2020-02-28 13:46:16 -05:00
parent bc7671b08d
commit 38ab1473f2
3 changed files with 14 additions and 4 deletions

View File

@@ -54,6 +54,11 @@ public class OverflowGate extends Block{
}
if(entity.lastItem != null){
if(entity.lastInput == null){
entity.lastItem = null;
return;
}
entity.time += 1f / speed * Time.delta();
Tile target = getTileTarget(tile, entity.lastItem, entity.lastInput, false);