Skip to content

Commit

Permalink
Replace .giveBack with .transformReplace
Browse files Browse the repository at this point in the history
Rather than .giveBack a crafted item leftover such as a bucket to the
players inventory, use .transformReplace to replace the item in the actual
crafting grid. This will prevent unwanted behaviour in several crafting
tables.

Known issues:
Both .giveBack and .transformReplace minetweaker functions will cause
problems with crafting devices having "ghost" or template items in the
crafting grid. .giveBack will cause the item used to craft to be
duplicated and .transformReplace will cause the item to be consumed
rather than given back. Known blocks/items to cause this include:

-Project & Auto Benches (ProjectRed)
-Worktable (Forestry)
-Workbench Backpacks (Backpacks)
  • Loading branch information
Teteros authored and Teteros committed Feb 16, 2016
1 parent 5b6d2e7 commit 0493545
Show file tree
Hide file tree
Showing 4 changed files with 167 additions and 166 deletions.
Loading

0 comments on commit 0493545

Please sign in to comment.