mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 19:00:33 +02:00
Remove obsolete code from TPTScriptInterface
This commit is contained in:
@@ -261,10 +261,7 @@ AnyType TPTScriptInterface::tptS_set(std::deque<std::string> * words)
|
||||
newValue = GetParticleType(((StringType)value).Value());
|
||||
if (newValue < 0 || newValue >= PT_NUM)
|
||||
{
|
||||
if (((StringType)value).Value() == "GOLD" || ((StringType)value).Value() == "gold")
|
||||
throw GeneralException("No, GOLD will not be an element");
|
||||
else
|
||||
throw GeneralException("Invalid element");
|
||||
throw GeneralException("Invalid element");
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user