mirror of
https://github.com/PaperMC/Folia.git
synced 2024-11-21 11:55:11 +01:00
55796e2084
Merge the container is empty and move checks when attempting to pull from other containers, as in both cases the container needs to be searched entirely anyways. Use getEntitiesOfClass when searching for entity containers, so that non-containers are not searched. For tryMoveItems, merge both the empty and full checks into one as they basically perform the same logic. Note that it relies on ejectItems returning true if _any_ item is moved, as moving items out of the hopper would affect whether the hopper is full or not. |
||
---|---|---|
.. | ||
api | ||
server |