ModTweaker

ModTweaker

88M Downloads

[Bug] Centrifuge doesn't accept Fuzzy Wildcard

Yulife opened this issue ยท 6 comments

commented

This script would show up in NEI but if you try to put a sapling in, it wouldn't accept it. Removing the ":*" makes it work again.

commented

OK i found something, but don't know if i am stupid or Forestry do something wrong.
@mezz

Compare the matching methods of Centrifuge and Fermenter (are used to check if valid recipe):
https://github.com/ForestryMC/ForestryMC/blob/dev/src/main/java/forestry/factory/gadgets/MachineCentrifuge.java#L75

https://github.com/ForestryMC/ForestryMC/blob/dev/src/main/java/forestry/factory/gadgets/MachineFermenter.java#L95

I changend Centrifuges matches logic to the one used in the Fermenter and now it seems working.

commented

For me it shows it correct in NEI, but the machine does not process it. What exactly (if you use) addon/version have you for NEI Forestry recipes?

commented

Tonius' NEI Integration.

commented

I am currently uncertain: can the normal Minecraft Itemstack handle the metadata/Damagevalues wildcard?

commented

Similar behaviour in ThermicFabricator, Carpenter for example accepts wildcard. I assume that i implemented something different than jarred, so that my machines don't accept wildcards

I let print the String interpration of an ItemStack to log '<minecraft:stained_glass:*>' become to 'Input:1xtile.stainedGlass@32767'

is the the correct int value for wildcards?

@jaredlll08 any suggestions?

commented

Is it now working? fixed they the Bug in Forestry?