mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-04-27 14:55:38 +00:00
Bugfixing
This commit is contained in:
parent
70e09747e3
commit
b85fbf02b3
@ -40,7 +40,8 @@ if (file_exists("d2im.db") && (file_exists($_SESSION['modname'].".db"))){
|
|||||||
$armor = PDO_FetchAll('SELECT * FROM armor WHERE `spawnable`=1');
|
$armor = PDO_FetchAll('SELECT * FROM armor WHERE `spawnable`=1');
|
||||||
$weapon = PDO_FetchAll('SELECT * FROM weapons WHERE `spawnable`=1');
|
$weapon = PDO_FetchAll('SELECT * FROM weapons WHERE `spawnable`=1');
|
||||||
|
|
||||||
$prop = $parser->parseFile('Properties.txt');
|
|
||||||
|
$prop = $parser->filterProps('Properties.txt');
|
||||||
|
|
||||||
// If there's data, process it and save
|
// If there's data, process it and save
|
||||||
if (!empty($_POST)) {
|
if (!empty($_POST)) {
|
||||||
|
@ -32,9 +32,6 @@ class D2TxtParser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function parseFile($file) {
|
public function parseFile($file) {
|
||||||
if ($file == "Properties.txt") {
|
|
||||||
return $this->filterProps($file);
|
|
||||||
}
|
|
||||||
return $this->parseData($file);
|
return $this->parseData($file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user