Fixed a few mistakes
Thanks to @Everade
This commit is contained in:
parent
02438563c5
commit
6ddf1a3224
@ -4225,13 +4225,18 @@ bool MobDatabase::parseDropNode(const std::string& nodeName, const YAML::Node& n
|
|||||||
if( this->nodeExists( dropit, "Clear" ) ){
|
if( this->nodeExists( dropit, "Clear" ) ){
|
||||||
bool clear;
|
bool clear;
|
||||||
|
|
||||||
if( !this->asBool( node, "Clear", clear ) ){
|
if( !this->asBool( dropit, "Clear", clear ) ){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( clear ){
|
if( clear ){
|
||||||
// Clear specific index
|
// Clear specific index
|
||||||
drops[index] = {};
|
drops[index] = {};
|
||||||
|
|
||||||
|
if( !this->nodeExists( dropit, "Item" ) ){
|
||||||
|
// Continue with next yaml node
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -4245,7 +4250,7 @@ bool MobDatabase::parseDropNode(const std::string& nodeName, const YAML::Node& n
|
|||||||
if( this->nodeExists( dropit, "Clear" ) ){
|
if( this->nodeExists( dropit, "Clear" ) ){
|
||||||
bool clear;
|
bool clear;
|
||||||
|
|
||||||
if( !this->asBool( node, "Clear", clear ) ){
|
if( !this->asBool( dropit, "Clear", clear ) ){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4255,7 +4260,7 @@ bool MobDatabase::parseDropNode(const std::string& nodeName, const YAML::Node& n
|
|||||||
drops[i] = {};
|
drops[i] = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !this->nodeExists( node, "Item" ) ){
|
if( !this->nodeExists( dropit, "Item" ) ){
|
||||||
// Continue with next yaml node
|
// Continue with next yaml node
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user