mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-08-29 08:42:17 +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:
parent
42f23d56ae
commit
6d103e2114
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user