Shearing sheep with chainsaw uses energy directly from the chainsaw instead of Batpack/Lappack.
[Minor Bug 1.71] Shearing sheep with chainsaw doesn't use energy from backpacks.
-
-
Is supposed to
-
Is supposed to
Doesn't make sense though.
Is this a limitation of the forge hook? -
Not a limitation, I do use our electric item code (use()) on the shearing op.
-
Ah, so you're "is supposed to" meant "This functionality is supposed to work, i cannot tell why it doesn't and will probably check the code again" and not "It's supposed to not do that".
Probably check whether the Energy Consumption for one shear operaton exceeds the amount of energy a Batpack can provide. Aka transfer limit.
-
Just tracked it down. Forge does not pass the player in useItemOnEntity, and since we don't know who's the player, it doesn't get energy from the batpack.
-
check every player inventory for this specific itemstack as class instance, and do whatever must be done.
looks like there is no way to find container of item.
-
I already sent LexManos a message either way.