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