mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 00:31:51 +00:00
A few changes (#362)
- Stalls now dissapear when thieving them - Added the missing coal rock in barbarian village - Added some height level checks for object spawns
This commit is contained in:
committed by
Daniel Ginovker
parent
85a0406d9b
commit
60239a38cf
@@ -126,11 +126,6 @@ public class ClickObject implements PacketType {
|
||||
//todo: check if it's a door before fire handle
|
||||
Doors.getSingleton().handleDoor(p, p.objectId, p.objectX, p.objectY, p.heightLevel);
|
||||
|
||||
if (Stalls.isObject(p.objectId)) {
|
||||
Stalls.attemptStall(p, p.objectId, p.objectX, p.objectX);
|
||||
return;
|
||||
}
|
||||
|
||||
if (p.teleTimer > 0) {
|
||||
p.getPacketSender().sendMessage("You cannot use objects while teleporting.");
|
||||
return;
|
||||
@@ -394,10 +389,6 @@ public class ClickObject implements PacketType {
|
||||
if (p.playerRights == 3) {
|
||||
p.getPacketSender().sendMessage("ObjectId: " + p.objectId + " ObjectX: " + p.objectX + " ObjectY: " + p.objectY + " Objectclick = 2, Xoff: " + (p.getX() - p.objectX) + " Yoff: " + (p.getY() - p.objectY));
|
||||
}
|
||||
if (Stalls.isObject(p.objectId)) {
|
||||
Stalls.attemptStall(p, p.objectId, p.objectX, p.objectX);
|
||||
return;
|
||||
}
|
||||
p.getObjects().secondClickObject(p.objectId, p.objectX, p.objectY);
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user