1
0
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:
David Queneau 2021-02-01 23:21:25 -08:00
parent 42f23d56ae
commit 6d103e2114

View File

@ -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;