mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-21 09:47:14 +07:00
Variable fits limit.
This commit is contained in:
parent
7a307bbe9c
commit
8f1869672d
@ -26,8 +26,8 @@ public interface Payload{
|
||||
}
|
||||
|
||||
/** @return whether this payload fits on a standard 3x3 conveyor. */
|
||||
default boolean fits(){
|
||||
return size() / tilesize <= 2.5f;
|
||||
default boolean fits(float s){
|
||||
return size() / tilesize <= s;
|
||||
}
|
||||
|
||||
/** writes the payload for saving. */
|
||||
|
Loading…
Reference in New Issue
Block a user