mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-27 01:08:34 +01:00
Made the ESD less performance intensive by giving it a cooldown
This commit is contained in:
parent
fafb54085f
commit
4de1295c55
1 changed files with 9 additions and 6 deletions
|
@ -260,12 +260,15 @@ public class TileEntityInputter extends TileEntityInventoryBase implements IButt
|
||||||
|
|
||||||
//Is Block not powered by Redstone?
|
//Is Block not powered by Redstone?
|
||||||
if(!this.isRedstonePowered){
|
if(!this.isRedstonePowered){
|
||||||
if(!(this.sideToPull == this.sideToPut && this.slotToPullStart == this.slotToPutStart && this.slotToPullEnd == this.slotToPutEnd)){
|
if(this.ticksElapsed%30 == 0){
|
||||||
if(this.sideToPull != -1 && this.placeToPull != null){
|
if(!(this.sideToPull == this.sideToPut && this.slotToPullStart == this.slotToPutStart && this.slotToPullEnd == this.slotToPutEnd)){
|
||||||
this.newPulling();
|
if(!StackUtil.isValid(this.slots[0]) && this.sideToPull != -1 && this.placeToPull != null){
|
||||||
}
|
this.newPulling();
|
||||||
if(StackUtil.isValid(this.slots[0]) && this.sideToPut != -1 && this.placeToPut != null){
|
}
|
||||||
this.newPutting();
|
|
||||||
|
if(StackUtil.isValid(this.slots[0]) && this.sideToPut != -1 && this.placeToPut != null){
|
||||||
|
this.newPutting();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue