There are GMs with no access to item creation.

This commit is contained in:
MobiusDevelopment
2020-01-29 13:48:13 +00:00
parent ea377b81c9
commit bb375e070f
2 changed files with 3 additions and 11 deletions

View File

@@ -134,7 +134,7 @@ public class BoatData implements IXmlReader
} }
else if ("path".equalsIgnoreCase(node.getNodeName())) else if ("path".equalsIgnoreCase(node.getNodeName()))
{ {
final List<BoatPoint> pathList = new ArrayList<>(); final List<BoatPoint> points = new ArrayList<>();
for (Node b = node.getFirstChild(); b != null; b = b.getNextSibling()) for (Node b = node.getFirstChild(); b != null; b = b.getNextSibling())
{ {
if (!"point".equalsIgnoreCase(b.getNodeName())) if (!"point".equalsIgnoreCase(b.getNodeName()))
@@ -157,9 +157,9 @@ public class BoatData implements IXmlReader
point.z = set.getInt("z"); point.z = set.getInt("z");
point.time = set.getInt("time"); point.time = set.getInt("time");
pathList.add(point); points.add(point);
} }
paths.put(Integer.parseInt(node.getAttributes().getNamedItem("id").getNodeValue()), pathList); paths.put(Integer.parseInt(node.getAttributes().getNamedItem("id").getNodeValue()), points);
} }
} }

View File

@@ -3640,20 +3640,12 @@ public class PlayerInstance extends Playable
*/ */
public boolean reduceAdena(String process, int count, WorldObject reference, boolean sendMessage) public boolean reduceAdena(String process, int count, WorldObject reference, boolean sendMessage)
{ {
// Game master don't need to pay
if (isGM())
{
sendMessage("You are a Gm, you don't need to pay! reduceAdena = 0.");
return true;
}
if (count > getAdena()) if (count > getAdena())
{ {
if (sendMessage) if (sendMessage)
{ {
sendPacket(SystemMessageId.YOU_NOT_ENOUGH_ADENA); sendPacket(SystemMessageId.YOU_NOT_ENOUGH_ADENA);
} }
return false; return false;
} }