Item class (.java); search for?Code:itemStackable[
|
So I fudgeed up something lol. I edited something awhile ago. I have no idea what it was. But now EVERY SINGLE item is stackable. What file did I mess up to make EVERYTHING stackable? Somebody help. This problem is HUGE.
Item class (.java); search for?Code:itemStackable[
This is all I got
Code:if (c == 0) { itemStackable[counter] = false; } else { itemStackable[counter] = true; }
Code:while ((c = dataIn.read()) != -1) {
Anyone?
Code:try { FileInputStream dataIn = new FileInputStream(new File("./Data/data/stackable.dat")); while ((c = dataIn.read()) != -1) { if (c == 0) { itemStackable[counter] = false; } else { itemStackable[counter] = true; } counter++; } dataIn.close(); int[] stackableItems = {itemidhere,itemidhere,itemidhere,itemidhere}; for (int i = 0; i < stackableItems.length; i++) { itemStackable[stackableItems[i]] = true; } } catch (IOException e) { System.out.println("Critical error while loading stackabledata! Trace:"); e.printStackTrace(); }
Will that make it so i can make items stackable. But also make it so that not every item is stackable?
Anyone?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |