aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_object.h
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-11-04 16:57:41 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-11-04 16:57:41 +0100
commit6ccb5835ff55d85156be91473c598eca9d6cb9a6 (patch)
tree7f1eaf8b94694c8e24e206909ba8f55a1ebfbb3e /src/script/lua_api/l_object.h
parent244713971a976e43e8740b6a9d9d122e37020ef2 (diff)
downloaddragonfireclient-6ccb5835ff55d85156be91473c598eca9d6cb9a6.tar.xz
Revert "Make Lint Happy"
This reverts commit ad148587dcf5244c2d2011dba339786c765c54c4.
Diffstat (limited to 'src/script/lua_api/l_object.h')
-rw-r--r--src/script/lua_api/l_object.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/script/lua_api/l_object.h b/src/script/lua_api/l_object.h
index a7b52bdb3..a75c59fd9 100644
--- a/src/script/lua_api/l_object.h
+++ b/src/script/lua_api/l_object.h
@@ -31,8 +31,7 @@ class RemotePlayer;
ObjectRef
*/
-class ObjectRef : public ModApiBase
-{
+class ObjectRef : public ModApiBase {
public:
ObjectRef(ServerActiveObject *object);
@@ -48,16 +47,16 @@ public:
static ObjectRef *checkobject(lua_State *L, int narg);
- static ServerActiveObject *getobject(ObjectRef *ref);
-
+ static ServerActiveObject* getobject(ObjectRef *ref);
private:
ServerActiveObject *m_object = nullptr;
static const char className[];
static luaL_Reg methods[];
- static LuaEntitySAO *getluaobject(ObjectRef *ref);
- static PlayerSAO *getplayersao(ObjectRef *ref);
+ static LuaEntitySAO* getluaobject(ObjectRef *ref);
+
+ static PlayerSAO* getplayersao(ObjectRef *ref);
static RemotePlayer *getplayer(ObjectRef *ref);
@@ -332,7 +331,7 @@ private:
static int l_get_sky(lua_State *L);
// get_sky_color(self)
- static int l_get_sky_color(lua_State *L);
+ static int l_get_sky_color(lua_State* L);
// set_sun(self, {visible, texture=, tonemap=, sunrise=, rotation=, scale=})
static int l_set_sun(lua_State *L);