You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am playing FTB Builder's Paradise and noticed the EMC Wand doesn't appear to work as intended. When I have blocks in my inventory, it will try to place as many of them as possible, but it never pulls from my EMC. It still shows the highlights as though the wand THINKS it should be able to place many blocks however.
After digging through the code, it appears to me that using the EMC wand shouldn't EVER pull from the player inventory, it should only pull from EMC or nothing. This lead me to the following code starting at line 32 of EMCPlayerShim.java
@OverRide
public boolean useItem(ItemStack itemStack) {
Based on the behavior of the wand pulling from the inventory, I think what is happening is useItem isn't being properly overrode and EMCPlayerShim defaults back to using the BasicPlayerShim useItem function.
Java and MC modding aren't my expertise, but I'm pretty confident that you need to make EMCPlayerShim's useItem function match the signature of BasicPlayerShim and make it either return an ItemStack of the required Items if the EMC is available or return null, instead of returning true or false.
The text was updated successfully, but these errors were encountered:
I'm still having the same problem. EMC wand uses actual items instead of EMC.
The mod list follows (I'm using a small custom modpack for testing stuff):
I am playing FTB Builder's Paradise and noticed the EMC Wand doesn't appear to work as intended. When I have blocks in my inventory, it will try to place as many of them as possible, but it never pulls from my EMC. It still shows the highlights as though the wand THINKS it should be able to place many blocks however.
After digging through the code, it appears to me that using the EMC wand shouldn't EVER pull from the player inventory, it should only pull from EMC or nothing. This lead me to the following code starting at line 32 of EMCPlayerShim.java
This function does not match the signature of the function it's replacing, which is at line 82 of BasicPlayerShim.java in BetterBuilderWands
Based on the behavior of the wand pulling from the inventory, I think what is happening is useItem isn't being properly overrode and EMCPlayerShim defaults back to using the BasicPlayerShim useItem function.
Java and MC modding aren't my expertise, but I'm pretty confident that you need to make EMCPlayerShim's useItem function match the signature of BasicPlayerShim and make it either return an ItemStack of the required Items if the EMC is available or return null, instead of returning true or false.
The text was updated successfully, but these errors were encountered: