mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 10:36:09 +01:00
*ItemData, multiple names
This commit is contained in:
parent
016facfc6a
commit
35492fa860
@ -25,7 +25,7 @@ public class ItemData {
|
||||
while(scanner.hasNextLine()) {
|
||||
String[] line = scanner.nextLine().split("=");
|
||||
if (line.length > 1) {
|
||||
String name = line[0];
|
||||
String[] name = line[0].split(",");
|
||||
Data data;
|
||||
|
||||
String[] str = line[1].split(",");
|
||||
@ -40,9 +40,10 @@ public class ItemData {
|
||||
mdata = Byte.parseByte(str[1]);
|
||||
}
|
||||
|
||||
data = new Data(name, id, mdata);
|
||||
|
||||
map.put(name, data);
|
||||
for (String n : name) {
|
||||
data = new Data(n, id, mdata);
|
||||
map.put(n, data);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
Stone=1
|
||||
Grass=2
|
||||
Dirt=3
|
||||
Cobblestone=4
|
||||
Cobblestone,Cobble=4
|
||||
WoodenPlank=5,0
|
||||
RedwoodPlank=5,1
|
||||
BirchPlank=5,2
|
||||
|
Loading…
Reference in New Issue
Block a user