From 895cf3b17321e7b0cc0ac4e77e42d182809e8ef1 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Tue, 26 Sep 2017 21:24:09 +0000 Subject: [PATCH] Re-adding L2World check for DeleteObject. --- .../java/com/l2jmobius/gameserver/model/L2World.java | 5 +++++ .../java/com/l2jmobius/gameserver/model/L2World.java | 5 +++++ .../java/com/l2jmobius/gameserver/model/L2World.java | 5 +++++ .../java/com/l2jmobius/gameserver/model/L2World.java | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/L2World.java b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/L2World.java index 1ed58a3b31..158f3283a1 100644 --- a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/L2World.java +++ b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/L2World.java @@ -447,6 +447,11 @@ public final class L2World { objectCreature.setTarget(null); } + + if (object.isPlayer()) + { + object.sendPacket(new DeleteObject(wo)); + } } if (wo.isCharacter()) diff --git a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/L2World.java b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/L2World.java index 1ed58a3b31..158f3283a1 100644 --- a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/L2World.java +++ b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/L2World.java @@ -447,6 +447,11 @@ public final class L2World { objectCreature.setTarget(null); } + + if (object.isPlayer()) + { + object.sendPacket(new DeleteObject(wo)); + } } if (wo.isCharacter()) diff --git a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/L2World.java b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/L2World.java index 1ed58a3b31..158f3283a1 100644 --- a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/L2World.java +++ b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/L2World.java @@ -447,6 +447,11 @@ public final class L2World { objectCreature.setTarget(null); } + + if (object.isPlayer()) + { + object.sendPacket(new DeleteObject(wo)); + } } if (wo.isCharacter()) diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/L2World.java b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/L2World.java index 1ed58a3b31..158f3283a1 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/L2World.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/L2World.java @@ -447,6 +447,11 @@ public final class L2World { objectCreature.setTarget(null); } + + if (object.isPlayer()) + { + object.sendPacket(new DeleteObject(wo)); + } } if (wo.isCharacter())