mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 00:31:51 +00:00
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:
@@ -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