Browse Source

BETA: Fixes:
* Minor typo in in Hellboudn spawn system.
* Patch by: Zoey76
* Tested by: lucan
* Reported by: lucan
* Fixing minor typo in item related checks.
* Patch by: Nos
* Reported by: CostyKiller, lucan
* Tested by: lucan

Zoey76 12 years ago
parent
commit
67d68f0c3e

+ 1 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/instancemanager/HellboundManager.java

@@ -272,7 +272,7 @@ public class HellboundManager
 					spawnDat.setAmount(1);
 					spawnDat.setX(rs.getInt("locx"));
 					spawnDat.setY(rs.getInt("locy"));
-					spawnDat.setX(rs.getInt("locz"));
+					spawnDat.setZ(rs.getInt("locz"));
 					spawnDat.setHeading(rs.getInt("heading"));
 					spawnDat.setRespawnDelay(rs.getInt("respawn_delay"), rs.getInt("respawn_random"));
 					spawnDat.setMinLvl(rs.getInt("min_hellbound_level"));

+ 1 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/network/clientpackets/RequestCancelPostAttachment.java

@@ -128,7 +128,7 @@ public final class RequestCancelPostAttachment extends L2GameClientPacket
 				return;
 			}
 			
-			if (!item.getLocation().equals(ItemLocation.MAIL))
+			if (item.getItemLocation() != ItemLocation.MAIL)
 			{
 				Util.handleIllegalPlayerAction(activeChar, "Player " + activeChar.getName() + " tried to get items not from mail !", Config.DEFAULT_PUNISH);
 				return;

+ 1 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/network/clientpackets/RequestPostAttachment.java

@@ -142,7 +142,7 @@ public final class RequestPostAttachment extends L2GameClientPacket
 				return;
 			}
 			
-			if (!item.getLocation().equals(ItemLocation.MAIL))
+			if (item.getItemLocation() != ItemLocation.MAIL)
 			{
 				Util.handleIllegalPlayerAction(activeChar, "Player " + activeChar.getName() + " tried to get wrong item (Location != MAIL) from attachment!", Config.DEFAULT_PUNISH);
 				return;