ChatBox logCoords error reporting
SquidDev opened this issue ยท 0 comments
Originally from this topic. May or may not be a bug.
When logCoords
is set to true, you should not be able to pass a name as a parameter, it should produce an error. However this error only occurs when the variable is not a string.
A sort of patch I knocked together from the original file
- if (arguments.length > 3 && Config.logCoords && !(arguments[3] instanceof String)) {
+ if (arguments.length > 3) {
if (Config.logCoords) {
throw new LuaException("Coordinate logging is enabled, disable this to enable naming");
+ } else if(!(arguments[3] instanceof String) {
throw new LuaException("Bad argument #4 (expected string)");
}
}