File Details
lightningtweaks-1.12.2-1.1.1.0.jar
- R
- Nov 18, 2018
- 18.61 KB
- 262
- 1.12.2
File Name
lightningtweaks-1.12.2-1.1.1.0.jar
Supported Versions
- 1.12.2
Smaller update this time! In this one I'm mainly focusing on the API and code in the mod rather than features. Some of the changes should make both of these better and more efficient. The gameplay itself is still basically the same apart from more configuration.
API:
- Added method to test if the EntityWeatherEffect passed to World.weatherEffects is any sort of lightning.
- Moved comparing Block search compares to its own method because I previously ran the same segment of code twice.
- Moved checking if an Entity is within the search radius to its own method.
- Updated documentation for more consistency between methods, changes in this update, and less vagueness.
Improvements:
- Changed storage method for the Block search to a List instead of a Map, effectively (probably) cutting the memory usage of it in half.
- Decreased the number of List operations to find the best Block by filtering and scoring Entities in the same List pass and no longer running HashMap.get(BlockPos) for each Block.
Configuration:
- Added options for Player and Non-Player score ratios. These can be used to make Entities more or less likely to be hit.
- Renamed the metal armor proportion option slightly
Fixes:
- Fixed leaves being ignored when lightning is looking for a place to strike, hitting the bark in the middle of the tree instead and not starting fires.

