Browse Source

Remove unused variable from signature.

master
MagicBot 1 year ago
parent
commit
b8217a8858
  1. 2
      src/engine/devcmd/cmds/AddNPCCmd.java
  2. 4
      src/engine/gameManager/BuildingManager.java
  3. 3
      src/engine/objects/NPC.java

2
src/engine/devcmd/cmds/AddNPCCmd.java

@ -79,7 +79,7 @@ public class AddNPCCmd extends AbstractDevCmd {
} }
NPC npc = NPC.createNPC(name, contractID, NPC npc = NPC.createNPC(name, contractID,
pc.getLoc(), null, true, zone, (short) level, null); pc.getLoc(), null, zone, (short) level, null);
if (npc != null) { if (npc != null) {
WorldGrid.addObject(npc, pc); WorldGrid.addObject(npc, pc);

4
src/engine/gameManager/BuildingManager.java

@ -501,7 +501,7 @@ public enum BuildingManager {
NPC npc = null; NPC npc = null;
npc = NPC.createNPC(pirateName, NpcID.getObjectUUID(), NpcLoc, null, false, zone, (short) rank, building); npc = NPC.createNPC(pirateName, NpcID.getObjectUUID(), NpcLoc, null, zone, (short) rank, building);
if (npc == null) if (npc == null)
return false; return false;
@ -569,7 +569,7 @@ public enum BuildingManager {
return true; return true;
} }
npc = NPC.createNPC(pirateName, contract.getObjectUUID(), Vector3fImmutable.ZERO, contractOwner.getGuild(), false, zone, (short) rank, building); npc = NPC.createNPC(pirateName, contract.getObjectUUID(), Vector3fImmutable.ZERO, contractOwner.getGuild(), zone, (short) rank, building);
if (npc == null) if (npc == null)
return false; return false;

3
src/engine/objects/NPC.java

@ -443,6 +443,7 @@ public class NPC extends AbstractCharacter {
} }
private static int serializeExtraRune(NPC npc, int runeID, int cnt, ByteBufferWriter writer) { private static int serializeExtraRune(NPC npc, int runeID, int cnt, ByteBufferWriter writer) {
writer.putInt(5); writer.putInt(5);
writer.putInt(0); writer.putInt(0);
writer.putInt(runeID); writer.putInt(runeID);
@ -456,7 +457,7 @@ public class NPC extends AbstractCharacter {
return cnt + 1; return cnt + 1;
} }
public static NPC createNPC(String name, int contractID, Vector3fImmutable spawn, Guild guild, boolean isMob, Zone parent, short level, Building building) { public static NPC createNPC(String name, int contractID, Vector3fImmutable spawn, Guild guild, Zone parent, short level, Building building) {
NPC newNPC = new NPC(); NPC newNPC = new NPC();

Loading…
Cancel
Save