mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-09-02 02:27:56 +00:00
Item movement methods now respect inventory slot rules (i.e. no pickaxes in the fuel slot of a furnace).
This commit is contained in:
@@ -318,6 +318,9 @@ public class InventoryMethods implements GenericSource
|
||||
count = result[1];
|
||||
}
|
||||
|
||||
// Respect slot restrictions
|
||||
if (!to.isValid(toSlot, source)) { return 0; }
|
||||
|
||||
// Compare count available in target ItemStack to limit specified.
|
||||
count = Math.min(count, limit);
|
||||
if (count == 0) return 0;
|
||||
|
Reference in New Issue
Block a user