Iguanas Tinker Tweaks

Iguanas Tinker Tweaks

12M Downloads

Repairing chisel in 2x2 crafting grid duplicates the chisel.

codewarrior0 opened this issue ยท 6 comments

commented

Probably because the chisel returns itself to inventory when using chisel recipes. Not sure how to fix it, only workaround is to repair in tool stations.

commented

Can't be fixed because vanilla MC

commented

Thought so. At least, could you block chisels from being repaired that way?

commented

I suppose I could. I just don't see it as a big issue because.. it's only a chisel. ;o

commented

If I understand the problem correctly, you can actually fix this easily using Forge events. Use PlayerEvent.ItemCraftedEvent and check for the chisel as the output, and if it is, decrease the stacksize of the input chisel or set it to null.

Example: https://github.com/squeek502/VeganOption/blob/master/java/squeek/veganoption/content/modifiers/CraftingModifier.java#L55-L93

commented

Oh, good idea. Only solution I found was the crafting handler, but there I can't do that because it'd reduce it before it's pulled out.

commented

Works like a charm squeek <3