Skip to content

Commit ecc3693

Browse files
committed
Disbaled the Inventory window
1 parent 2805019 commit ecc3693

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/com/redomar/game/objects/Inventory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ public class Inventory {
99
public static boolean open = false;
1010
public static boolean closing;
1111
public static boolean reset;
12+
public static boolean enabled;
1213
private static InventoryWindow inv_window = new InventoryWindow();
1314

1415
public static void activate() {
1516
x = (int) Game.getPlayer().getX();
1617
y = (int) Game.getPlayer().getY();
1718

1819
if (Game.getLevel().getTile(x >> 3, y >> 3).getId() == 8) {
19-
if (!reset) {
20+
if (enabled) {
2021
if (!open) {
2122
if (!closing) {
2223
System.out.println("Opened\nInside this Bag their is:"

0 commit comments

Comments
 (0)