From bf3d7e9ad76a9c06c2f7f5771311dc8ea481dd96 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Thu, 15 Nov 2012 20:13:19 -0500 Subject: fix tpt.el.X.name commands diff --git a/src/cat/LegacyLuaAPI.cpp b/src/cat/LegacyLuaAPI.cpp index d6e6ce6..9a478e7 100644 --- a/src/cat/LegacyLuaAPI.cpp +++ b/src/cat/LegacyLuaAPI.cpp @@ -462,7 +462,7 @@ int luacon_elementwrite(lua_State* l){ free(key); return luaL_error(l, "Name too long"); } - if(luacon_ci->GetParticleType(tempstring) == -1) + if(luacon_ci->GetParticleType(tempstring) != -1) { free(tempstring); free(key); -- cgit v0.9.2-21-gd62e