Then apply flexibility to the Payload Conveyor
Modding :D
This commit is contained in:
@@ -20,6 +20,7 @@ public class PayloadConveyor extends Block{
|
||||
public @Load("@-top") TextureRegion topRegion;
|
||||
public @Load("@-edge") TextureRegion edgeRegion;
|
||||
public Interp interp = Interp.pow5;
|
||||
public float payloadLimit = 2.5f;
|
||||
|
||||
public PayloadConveyor(String name){
|
||||
super(name);
|
||||
@@ -216,10 +217,10 @@ public class PayloadConveyor extends Block{
|
||||
@Override
|
||||
public boolean acceptPayload(Building source, Payload payload){
|
||||
if(source == this){
|
||||
return this.item == null && payload.fits();
|
||||
return this.item == null && payload.fits(payloadLimit);
|
||||
}
|
||||
//accepting payloads from units isn't supported
|
||||
return this.item == null && progress <= 5f && payload.fits();
|
||||
return this.item == null && progress <= 5f && payload.fits(payloadLimit);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user