Browse Source

fix for castle/clanhall doors on respawn, thx Erb

janiii 16 years ago
parent
commit
f4f854bfd6

+ 1 - 0
L2_GameServer/java/net/sf/l2j/gameserver/model/entity/Castle.java

@@ -641,6 +641,7 @@ public class Castle
 			{
 				door.decayMe(); // Kill current if not killed already
 				door = DoorTable.parseList(_doorDefault.get(i));
+				DoorTable.getInstance().putDoor(door); //Readd the new door to the DoorTable By Erb
 				if (isDoorWeak)
 					door.setCurrentHp(door.getMaxHp() / 2);
 				door.spawnMe(door.getX(), door.getY(), door.getZ());

+ 1 - 0
L2_GameServer/java/net/sf/l2j/gameserver/model/entity/ClanHall.java

@@ -403,6 +403,7 @@ public class ClanHall
 			{
 				door.decayMe(); // Kill current if not killed already
 				door = DoorTable.parseList(_doorDefault.get(i));
+				DoorTable.getInstance().putDoor(door); //Readd the new door to the DoorTable By Erb
 				if (isDoorWeak)
 					door.setCurrentHp(door.getMaxHp() / 2);
 				door.spawnMe(door.getX(), door.getY(), door.getZ());