Removed sleep

This commit is contained in:
Anuken
2020-04-25 10:12:37 -04:00
parent 2e2c8ceab4
commit 81af481d3a

View File

@@ -173,12 +173,6 @@ public class StackConveyor extends Block implements Autotiler{
// reel in crater // reel in crater
if(cooldown > 0f) cooldown = Mathf.clamp(cooldown - speed, 0f, recharge); if(cooldown > 0f) cooldown = Mathf.clamp(cooldown - speed, 0f, recharge);
//no items -> sleep
if(items.empty()){
sleep();
return;
}
if(link == -1){ if(link == -1){
return; return;
} }
@@ -205,7 +199,6 @@ public class StackConveyor extends Block implements Autotiler{
// sleep if its occupied // sleep if its occupied
if(e.link == -1){ if(e.link == -1){
e.items.addAll(items); e.items.addAll(items);
e.noSleep();
e.link = tile.pos(); e.link = tile.pos();
// ▲ new | old ▼ // ▲ new | old ▼
link = -1; link = -1;
@@ -232,7 +225,6 @@ public class StackConveyor extends Block implements Autotiler{
private void poofIn(){ private void poofIn(){
link = tile.pos(); link = tile.pos();
Fx.plasticburn.at(this); Fx.plasticburn.at(this);
noSleep();
} }
private void poofOut(){ private void poofOut(){
@@ -245,7 +237,6 @@ public class StackConveyor extends Block implements Autotiler{
if(items.empty()) poofIn(); if(items.empty()) poofIn();
super.handleItem(source, item); super.handleItem(source, item);
lastItem = item; lastItem = item;
noSleep();
} }
@Override @Override
@@ -253,7 +244,6 @@ public class StackConveyor extends Block implements Autotiler{
if(items.empty()) poofIn(); if(items.empty()) poofIn();
super.handleStack(item, amount, source); super.handleStack(item, amount, source);
lastItem = item; lastItem = item;
noSleep();
} }
@Override @Override