From 1bd3873eb3fad485e5bd4a97d693c593158cd1a2 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Tue, 12 Sep 2017 19:31:38 +0000 Subject: [PATCH] Better limit calculation for previous commit. --- .../game/data/scripts/handlers/bypasshandlers/NpcViewMod.java | 2 +- .../game/data/scripts/handlers/bypasshandlers/NpcViewMod.java | 2 +- .../game/data/scripts/handlers/bypasshandlers/NpcViewMod.java | 2 +- .../game/data/scripts/handlers/bypasshandlers/NpcViewMod.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java index 31956468db..8178160913 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java @@ -527,7 +527,7 @@ public class NpcViewMod implements IBypassHandler } } - if ((rightSb.length() + leftSb.length()) < 13000) // limit of 32766 + if ((sb.length() + rightSb.length() + leftSb.length()) < 16000) // limit of 32766? { if (leftHeight >= (rightHeight + height)) { diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java index 31956468db..8178160913 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java @@ -527,7 +527,7 @@ public class NpcViewMod implements IBypassHandler } } - if ((rightSb.length() + leftSb.length()) < 13000) // limit of 32766 + if ((sb.length() + rightSb.length() + leftSb.length()) < 16000) // limit of 32766? { if (leftHeight >= (rightHeight + height)) { diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java index 31956468db..8178160913 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java @@ -527,7 +527,7 @@ public class NpcViewMod implements IBypassHandler } } - if ((rightSb.length() + leftSb.length()) < 13000) // limit of 32766 + if ((sb.length() + rightSb.length() + leftSb.length()) < 16000) // limit of 32766? { if (leftHeight >= (rightHeight + height)) { diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java index 31956468db..8178160913 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java @@ -527,7 +527,7 @@ public class NpcViewMod implements IBypassHandler } } - if ((rightSb.length() + leftSb.length()) < 13000) // limit of 32766 + if ((sb.length() + rightSb.length() + leftSb.length()) < 16000) // limit of 32766? { if (leftHeight >= (rightHeight + height)) {