diff options
author | Mattes D <github@xoft.cz> | 2020-04-03 14:50:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-03 14:50:08 +0200 |
commit | a765e71325c640ab47c60a41b950b446c5901d37 (patch) | |
tree | b245017dea46da13e5646a7a34dcde90d4b2680c /src/Bindings/DeprecatedBindings.cpp | |
parent | Pulled the BlockID and BlockInfo headers from Globals.h. (#4591) (diff) | |
download | cuberite-a765e71325c640ab47c60a41b950b446c5901d37.tar cuberite-a765e71325c640ab47c60a41b950b446c5901d37.tar.gz cuberite-a765e71325c640ab47c60a41b950b446c5901d37.tar.bz2 cuberite-a765e71325c640ab47c60a41b950b446c5901d37.tar.lz cuberite-a765e71325c640ab47c60a41b950b446c5901d37.tar.xz cuberite-a765e71325c640ab47c60a41b950b446c5901d37.tar.zst cuberite-a765e71325c640ab47c60a41b950b446c5901d37.zip |
Diffstat (limited to 'src/Bindings/DeprecatedBindings.cpp')
-rw-r--r-- | src/Bindings/DeprecatedBindings.cpp | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/Bindings/DeprecatedBindings.cpp b/src/Bindings/DeprecatedBindings.cpp index b9969ca65..fbbf408e6 100644 --- a/src/Bindings/DeprecatedBindings.cpp +++ b/src/Bindings/DeprecatedBindings.cpp @@ -9,7 +9,6 @@ #include "../World.h" #include "../Entities/Player.h" #include "LuaState.h" -#include "../Tracer.h" #include "../BlockInfo.h" @@ -470,47 +469,6 @@ static int tolua_set_cItem_m_Lore(lua_State * tolua_S) -/* method: Trace of class cTracer */ -static int tolua_cTracer_Trace(lua_State * a_LuaState) -{ - // Log a deprecation warning with stacktrace: - cLuaState S(a_LuaState); - LOGWARNING("The function cTracer:Trace is obsolete, use the cLineBlockTracer instead"); - S.LogStackTrace(); - - // Check params: - if ( - !S.CheckParamUserType(1, "cTracer") || - !S.CheckParamUserType(2, "const Vector3<float>", 3) || - !S.CheckParamNumber (4) - ) - { - return 0; - } - - // Read params: - cTracer * self; - Vector3d * start; - Vector3d * direction; - int distance; - bool lineOfSight = false; - if (!S.GetStackValues(1, self, start, direction, distance)) - { - LOGWARNING("Cannot retrieve parameters for cTracer::Trace. Expected a cTracer (self), Vector3d, Vector3d, number and optional boolean."); - S.LogStackValues(); - return 0; - } - S.GetStackValue(5, lineOfSight); - - // Call and push the result: - S.Push(self->Trace(*start, *direction, distance, lineOfSight)); - return 1; -} - - - - - /** function: cWorld:SetSignLines */ static int tolua_cWorld_SetSignLines(lua_State * tolua_S) { @@ -642,10 +600,6 @@ void DeprecatedBindings::Bind(lua_State * tolua_S) tolua_variable(tolua_S, "m_Lore", tolua_get_cItem_m_Lore, tolua_set_cItem_m_Lore); tolua_endmodule(tolua_S); - tolua_beginmodule(tolua_S, "cTracer"); - tolua_function(tolua_S, "Trace", tolua_cTracer_Trace); - tolua_endmodule(tolua_S); - tolua_beginmodule(tolua_S, "cWorld"); tolua_function(tolua_S, "UpdateSign", tolua_cWorld_SetSignLines); tolua_endmodule(tolua_S); |