mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-11 19:53:52 +00:00
Remove AUTO_VAR macro and _toString function (#592)
This commit is contained in:
parent
7d6658fe5b
commit
55231bb8d3
294 changed files with 5067 additions and 5773 deletions
|
|
@ -14,12 +14,12 @@ AttributeInstance *ServersideAttributeMap::getInstance(Attribute *attribute)
|
|||
AttributeInstance *ServersideAttributeMap::getInstance(eATTRIBUTE_ID id)
|
||||
{
|
||||
AttributeInstance *result = BaseAttributeMap::getInstance(id);
|
||||
|
||||
|
||||
// 4J: Removed legacy name
|
||||
// If we didn't find it, search by legacy name
|
||||
/*if (result == NULL)
|
||||
{
|
||||
AUTO_VAR(it, attributesByLegacy.find(name));
|
||||
auto it = attributesByLegacy.find(name);
|
||||
if(it != attributesByLegacy.end())
|
||||
{
|
||||
result = it->second;
|
||||
|
|
@ -31,15 +31,15 @@ AttributeInstance *ServersideAttributeMap::getInstance(eATTRIBUTE_ID id)
|
|||
|
||||
AttributeInstance *ServersideAttributeMap::registerAttribute(Attribute *attribute)
|
||||
{
|
||||
AUTO_VAR(it,attributesById.find(attribute->getId()));
|
||||
if (it != attributesById.end())
|
||||
auto it = attributesById.find(attribute->getId());
|
||||
if (it != attributesById.end())
|
||||
{
|
||||
return it->second;
|
||||
}
|
||||
|
||||
AttributeInstance *instance = new ModifiableAttributeInstance(this, attribute);
|
||||
attributesById.insert(std::pair<eATTRIBUTE_ID, AttributeInstance *>(attribute->getId(), instance));
|
||||
|
||||
|
||||
// 4J: Removed legacy name
|
||||
// If this is a ranged attribute also add to legacy name map
|
||||
/*RangedAttribute *rangedAttribute = dynamic_cast<RangedAttribute*>(attribute);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue