New stuff 6 (#324)
* Some stuff on weight Some stuff on weight * Cleaned some code related to trading and fixed most likely the issue where the player stays busy and cant trade till relog Cleaned some code related to trading and fixed most likely the issue where the player stays busy and cant trade till relog * removed a shitload of '== true' I did a search and replace but I manually checked the changes that were made so there shouldn't be any issue with that.
This commit is contained in:
1 parent
1c2deaacb6
commit
5f500280b2
38 files changed
+157
-157
No files matched your search
@@ -142,7 +142,7 @@ public class ClickObject implements PacketType {
|
||||
}
|
||||
switch (p.objectId) {
|
||||
case 1292:
|
||||
if (p.spiritTree == false && p.clickedTree == true) {
|
||||
if (p.spiritTree == false && p.clickedTree) {
|
||||
p.getPacketSender().sendMessage("You have already spawned a tree spirit.");
|
||||
return;
|
||||
}
|
||||
@@ -150,7 +150,7 @@ public class ClickObject implements PacketType {
|
||||
p.getPacketSender().sendMessage("You attempt to chop the tree, and a tree spirit appears.");
|
||||
NpcHandler.spawnNpc(p, 655, p.getX(), p.getY(), 0, 0, 225, 20, 80, 80, true, false);
|
||||
p.clickedTree = true;
|
||||
} else if (p.spiritTree == true) {
|
||||
} else if (p.spiritTree) {
|
||||
Woodcutting.startWoodcutting(p, p.objectId, p.objectX, p.objectY, p.clickObjectType);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user