The two checks in canPay:
|
if(now != null && now.getItem() !=null && now.getItem().getClass() == ClientConfigStorage.INSTANCE.getCost().getClass()){ |
and doPay:
|
player.inventory.clearMatchingItems(ClientConfigStorage.INSTANCE.getCost(), 0, stackSize, null); |
Are not the same if the items are different only in an internal class map, e.g. TFC Powders:
https://github.com/TerraFirmaCraft/TerraFirmaCraft/blob/1.12.x/src/main/java/net/dries007/tfc/objects/items/ItemPowder.java
So canPay finds lapis powder in the inventory, but the payment item configured is "tfc:powder/kaolinite", so doPay finds nothing to clear, and the TP costs nothing.
Is Signpost still supported in 1.12?
The two checks in canPay:
Signpost/src/main/java/gollorum/signpost/management/PostHandler.java
Line 214 in 1dc723b
and doPay:
Signpost/src/main/java/gollorum/signpost/management/PostHandler.java
Line 227 in 1dc723b
Are not the same if the items are different only in an internal class map, e.g. TFC Powders:
https://github.com/TerraFirmaCraft/TerraFirmaCraft/blob/1.12.x/src/main/java/net/dries007/tfc/objects/items/ItemPowder.java
So canPay finds lapis powder in the inventory, but the payment item configured is "tfc:powder/kaolinite", so doPay finds nothing to clear, and the TP costs nothing.
Is Signpost still supported in 1.12?