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:
Mr Extremez
2020-01-13 06:53:18 -06:00
committed by Daniel Ginovker
parent 85a0406d9b
commit 60239a38cf
8 changed files with 42 additions and 30 deletions
@@ -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;