No description
1ec990d0c8
In some rare cases the Box's initialize() may be supplied with coordinates equal to INT_MAX while theoretically being initialized. Normally this would be harmless, as with every coordinate being INT_MAX the resulting box's dimensions are zero, however anywhere where one of the coordinates is actually used in a loop with a "i <= coord" condition the loop counter will overflow and bad things will happen, e.g. in FillerFlattener.iteratePattern, where I encountered this bug, an array will overflow and take down the whole game with it resulting in a corrupted world. (As broken INT_MAX coordinates will get saved in NBT tags.) |
||
---|---|---|
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 behaviour feel free to do so. If you would like to add features or change existing behaviour 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.