Skip to content
Snippets Groups Projects
Commit 577b67c4 authored by Nos's avatar Nos
Browse files

BETA: DP-Part for [L6330]

parent 39f6f59c
No related branches found
No related tags found
No related merge requests found
......@@ -81,9 +81,9 @@ public class TarBeetleSpawn extends DocumentParser
if (r.getNodeName().equals("zone"))
{
NamedNodeMap attrs = r.getAttributes();
int id = parseInt(attrs, "id");
int minZ = parseInt(attrs, "minZ");
int maxZ = parseInt(attrs, "maxZ");
int id = parseInteger(attrs, "id");
int minZ = parseInteger(attrs, "minZ");
int maxZ = parseInteger(attrs, "maxZ");
String type = parseString(attrs, "type");
if (type.equals("upper"))
{
......@@ -112,8 +112,8 @@ public class TarBeetleSpawn extends DocumentParser
if (c.getNodeName().equals("point"))
{
attrs = c.getAttributes();
int x = parseInt(attrs, "x");
int y = parseInt(attrs, "y");
int x = parseInteger(attrs, "x");
int y = parseInteger(attrs, "y");
zone.add(x, y, minZ, maxZ, 0);
}
}
......
......@@ -64,7 +64,7 @@ public class NpcBuffersData extends DocumentParser
if ("npc".equalsIgnoreCase(d.getNodeName()))
{
attrs = d.getAttributes();
final int npcId = parseInt(attrs, "id");
final int npcId = parseInteger(attrs, "id");
final NpcBufferData npc = new NpcBufferData(npcId);
for (Node c = d.getFirstChild(); c != null; c = c.getNextSibling())
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment