No description
1afcf370b5
Old implementation was not as intended I think. For example, lava as fuel should have outputted 20000 MJ, but actually outputted 20980 MJ. This was because burnTime's value went 20,19,...2,1,0,20 - so that it had actually outputted 21 MJ for each amount of fuel. Also, when the last amount of fuel was burned, burnTime would be 20 but fuel would be null, and so would currentFuel so that the last cycle was skipped. So the actual output of some fuel was: powerPerCycle * ((amount - 1) * (totalBurnTime/1000 + 1) + 1). There probably are better ways to fix it but this is what seemed best to me. |
||
---|---|---|
buildcraft_resources | ||
common/buildcraft | ||
.classpath | ||
.gitattributes | ||
.gitignore | ||
.project | ||
build.xml | ||
README.md |
Welcome to Buildcraft on GitHub
Contributing
If you wish to submit a pull request to fix bugs or broken behaivor feel free to do so. If you would like to add features or change existing behaivour or balance, please discuss it with Sengir or Krapht before submiting the pull request.
Compiling and packaging Buildcraft
- Ensure that
Apache Ant
(found here) is installed correctly on your system.
- Linux users will need the latest version of astyle installed as well.
- Create a base directory for the build
- Clone the Buildcraft repository into
basedir/BuildCraft/
- Optional: Copy BuildCraft localization repository into
basedir/BuildCraft-Localization
- Copy the minecraft bin dir and minecraft_server.jar into
basedir/jars/
- Navigate to basedir/Buildcraft in a shell and run
ant
(this will take 2-5 minutes) - The compiled and obfuscated jar will be in basedir/build/dist
Your directory structure should look like this:
basedir
\- jars
|- minecraft_server.jar
\- bin
|- minecraft.jar
|- ...
\- BuildCraft
|- buildcraft_resources
|- common
|- ...
\- BuildCraft-Localization
|- lang
Localizations
Localizations can be submitted here. Localization PRs against this repository will have to be rejected.