Skip to content

Commit 3c59358

Browse files
committed
also excluded updateVanillaAttributes -> changes ItemMeta which is required strictly sometimes
1 parent c276a68 commit 3c59358

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/studio/magemonkey/divinity/stats/items/ItemStats.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public static boolean hasStat(@NotNull ItemStack item, @Nullable Player player,
308308
// ----------------------------------------------------------------- //
309309

310310
public static void updateVanillaAttributes(@NotNull ItemStack item, @Nullable Player player) {
311-
//if(EngineCfg.LEGACY_COMBAT) return;
311+
if(EngineCfg.FULL_LEGACY || EngineCfg.LEGACY_COMBAT) return;
312312

313313
addAttribute(item, player, NBTAttribute.MAX_HEALTH, getStat(item, player, TypedStat.Type.MAX_HEALTH));
314314
addAttribute(item, player, NBTAttribute.MOVEMENT_SPEED, getStat(item, player, TypedStat.Type.MOVEMENT_SPEED));

0 commit comments

Comments
 (0)