From 8f1869672db739f53025edc09fd5fc5fe7507401 Mon Sep 17 00:00:00 2001 From: MEEP of Faith <54301439+MEEPofFaith@users.noreply.github.com> Date: Fri, 2 Oct 2020 21:16:45 -0700 Subject: [PATCH] Variable fits limit. --- core/src/mindustry/world/blocks/payloads/Payload.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/world/blocks/payloads/Payload.java b/core/src/mindustry/world/blocks/payloads/Payload.java index 2caadf8eb6..00364fd5af 100644 --- a/core/src/mindustry/world/blocks/payloads/Payload.java +++ b/core/src/mindustry/world/blocks/payloads/Payload.java @@ -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. */