Posted October 22, 201213 yr Hello, Maybe someone could use this oneliner shell script for porting from forge 4.x -> 5.0 which replaces the deprecated getOrCreate... functions. find . -iname '*.java' -type f | xargs sed -i.bak -e 's/getOrCreateIntProperty(\(.*\),\s*\(.*\),\s*\(.*\))/get(\2, \1, \3)/g' -e 's/getOrCreateProperty(\(.*\),\s*\(.*\),\s*\(.*\))/get(\2, \1, \3)/g' -e 's/getOrCreateBooleanProperty(\(.*\),\s*\(.*\),\s*\(.*\))/get(\2, \1, \3)/g' -e 's/getOrCreateBlockIdProperty(\(.*\),\s*\(.*\))/getBlock(Configuration.CATEGORY_BLOCK, \1, \2)/g' It solved 56 of 60 buildcraft build errors. [bF]
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.