Fix Firemaking in Dwarven Areas (#630)

Boundary Coords by @HaloGod35
This commit is contained in:
Josh Shippam
2023-02-24 19:28:49 +00:00
committed by GitHub
parent af7ae6185e
commit a2d24978a4
2 changed files with 5 additions and 1 deletions
@@ -51,6 +51,10 @@ public class Firemaking {
c.getPacketSender().sendMessage("You cannot light a fire here.");
return;
}
if (Boundary.isIn(c, Boundary.DWARF_NO_FIREMAKING)) {
c.getPacketSender().sendMessage("The dwarves won't be happy if you light a fire here.");
return;
}
if (GameEngine.objectManager.objectExists(c.absX, c.absY)) {
c.getPacketSender().sendMessage("You cannot light a fire here.");
return;