mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-13 16:54:05 +00:00
- 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:
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]+)?",
|
||||
|
||||
Reference in new issue
Block a user