mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-24 22:26:46 +01:00
2.2.024
This commit is contained in:
parent
04007f6dbc
commit
406a7ba694
@ -1,11 +1,12 @@
|
||||
Version 2.2.024
|
||||
Fixed a bug where Giga Drill breaker was giving out more loot than intended
|
||||
Fixed errors when Fishing or using Shake ability
|
||||
Significant optimizations made to reading new chunks for mcMMO
|
||||
Significant optimizations to most block interactions in mcMMO code
|
||||
Fixed a horrendous edge case where Tree Feller could cause a lot of lag
|
||||
|
||||
Notes:
|
||||
Got a bit carried away and started to optimize stuff.
|
||||
I was able to make Tree Feller way faster with optimizations in this update, I tested with a custom gigantic tree that had over 200,000 blocks felled (huge) and it only took 4 seconds total, in the previous version of mcMMO this would take over 2-3 minutes.
|
||||
Part of this update focused on optimization, there's improvements of around 30% in CPU time for most code involving block interactions in mcMMO, which happens to be most code in mcMMO.
|
||||
One of the optimizations made in this update removes an edge case where Tree Feller could cause a lot of lag, but the optimizations really are across the board in regards to any abilities that interact with blocks.
|
||||
|
||||
Version 2.2.023
|
||||
Compatibility with Minecraft 1.21.3
|
||||
|
2
pom.xml
2
pom.xml
@ -2,7 +2,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
||||
<artifactId>mcMMO</artifactId>
|
||||
<version>2.2.024-SNAPSHOT</version>
|
||||
<version>2.2.024</version>
|
||||
<name>mcMMO</name>
|
||||
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
||||
<scm>
|
||||
|
@ -42,7 +42,6 @@ public class ExcavationManager extends SkillManager {
|
||||
excavationBlockCheck(blockState.getBlock());
|
||||
}
|
||||
|
||||
|
||||
public void excavationBlockCheck(Block block) {
|
||||
int xp = ExperienceConfig.getInstance().getXp(PrimarySkillType.EXCAVATION, block.getType());
|
||||
requireNonNull(block, "excavationBlockCheck: block cannot be null");
|
||||
@ -135,6 +134,7 @@ public class ExcavationManager extends SkillManager {
|
||||
*/
|
||||
public void gigaDrillBreaker(Block block) {
|
||||
excavationBlockCheck(block);
|
||||
excavationBlockCheck(block);
|
||||
|
||||
SkillUtils.handleDurabilityChange(getPlayer().getInventory().getItemInMainHand(),
|
||||
mcMMO.p.getGeneralConfig().getAbilityToolDamage());
|
||||
|
Loading…
Reference in New Issue
Block a user