- transformReplace() now gives the replacement item in the player inventory if it is part of a stack (instead of modifying the whole stack)

- Added noReturn() transformation to avoid any item from being returned. Suppressed programmed vanilla/mod behaviour to, for example, give a bucket back.
- Added giveBack() and giveBack(item) transformation to return the item, or a replacement item, back into the inventory instead of the crafting table. Fixes fighting between transformations and default mod/vanilla behavior.
- Fixed asterisks in multiline comments breaking script parsing.
- Fixed removeShaped function not working properly if no ingredients are given
- Fixed addAll for oredict entries in 1.7.10
This commit is contained in:
Stan Hebben committed 2014-08-30 14:47:00 +02:00
1 parent 56b8c9355c
commit 25b9589af7
34 files changed
+163 -59

No files matched your search

@@ -95,7 +95,7 @@ public class ZenTokener extends TokenStream {
private static final String[] REGEXPS = {
"#[^\n]*[\n\\e]",
"//[^\n]*[\n\\e]",
"/\\*[^\\*]*(\\*^/[^\\*]*)*\\*/",
"/\\*[^\\*]*(\\*[^/]*)*\\*/",
"[ \t\r\n]*",
"[a-zA-Z_][a-zA-Z_0-9]*",
"\\-?(0|[1-9][0-9]*)\\.[0-9]+([eE][\\+\\-]?[0-9]+)?",