|
1 | 1 | package com.azuredoom.levelingcore.systems; |
2 | 2 |
|
3 | | -import com.azuredoom.levelingcore.utils.PendingUpdate; |
4 | 3 | import com.hypixel.hytale.component.ArchetypeChunk; |
5 | 4 | import com.hypixel.hytale.component.CommandBuffer; |
6 | 5 | import com.hypixel.hytale.component.Store; |
|
22 | 21 | import com.azuredoom.levelingcore.LevelingCore; |
23 | 22 | import com.azuredoom.levelingcore.config.GUIConfig; |
24 | 23 | import com.azuredoom.levelingcore.level.formulas.loader.LevelTableLoader; |
25 | | -import com.azuredoom.levelingcore.level.mobs.CoreLevelMode; |
26 | 24 | import com.azuredoom.levelingcore.utils.MobLevelingUtil; |
| 25 | +import com.azuredoom.levelingcore.utils.PendingUpdate; |
27 | 26 |
|
28 | 27 | @SuppressWarnings("removal") |
29 | 28 | public class MobLevelSystem extends EntityTickingSystem<EntityStore> { |
@@ -108,11 +107,12 @@ private void drainPending(@NonNullDecl Store<EntityStore> store) { |
108 | 107 | var store1 = u.store(); |
109 | 108 | var data = u.data(); |
110 | 109 |
|
111 | | - if (data.locked) continue; |
| 110 | + if (data.locked) |
| 111 | + continue; |
112 | 112 |
|
113 | 113 | var newLevel = Math.max( |
114 | | - 1, |
115 | | - Math.min(mobMaxLevel, MobLevelingUtil.computeDynamicLevel(config, npc, transform, store1)) |
| 114 | + 1, |
| 115 | + Math.min(mobMaxLevel, MobLevelingUtil.computeDynamicLevel(config, npc, transform, store1)) |
116 | 116 | ); |
117 | 117 |
|
118 | 118 | if (newLevel != data.level) { |
@@ -143,7 +143,7 @@ private int computeMobMaxLevel() { |
143 | 143 | case "LINEAR" -> internalConfig.formula.linear.maxLevel; |
144 | 144 | case "TABLE" -> { |
145 | 145 | var tableFormula = LevelTableLoader.loadOrCreateFromDataDir( |
146 | | - internalConfig.formula.table.file |
| 146 | + internalConfig.formula.table.file |
147 | 147 | ); |
148 | 148 | yield Math.max(1, tableFormula.getMaxLevel()); |
149 | 149 | } |
|
0 commit comments