aboutsummaryrefslogtreecommitdiff
path: root/games/minimal/mods/legacy/textures/rat.png
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2019-09-19 16:39:57 +0200
committersfan5 <sfan5@live.de>2019-09-19 16:46:41 +0200
commit5c9983400fb085167bf11f8a0483b8e8f6dd8a24 (patch)
treeee0906d91993e542fa8e18e37dd5a4bd3836e141 /games/minimal/mods/legacy/textures/rat.png
parent0b5c5499ec4be6d1d4349478d89edb793d36ec66 (diff)
downloadminetest-5c9983400fb085167bf11f8a0483b8e8f6dd8a24.tar.gz
minetest-5c9983400fb085167bf11f8a0483b8e8f6dd8a24.tar.bz2
minetest-5c9983400fb085167bf11f8a0483b8e8f6dd8a24.zip
Remove incorrect MutexAutoLock
The line declared a variable "m_con" instead of locking m_con. getClient() doesn't need this anyway, so remove it.
Diffstat (limited to 'games/minimal/mods/legacy/textures/rat.png')
0 files changed, 0 insertions, 0 deletions
id='n135' href='#n135'>135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
/*
Minetest
Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#include "cpp_api/s_item.h"
#include "cpp_api/s_internal.h"
#include "common/c_converter.h"
#include "common/c_content.h"
#include "lua_api/l_item.h"
#include "server.h"
#include "log.h"
#include "util/pointedthing.h"

bool ScriptApiItem::item_OnDrop(ItemStack &item,
		ServerActiveObject *dropper, v3f pos)
{
	SCRIPTAPI_PRECHECKHEADER

	// Push callback function on stack
	if(!getItemCallback(item.name.c_str(), "on_drop"))
		return false;

	// Call function
	LuaItemStack::create(L, item);
	objectrefGetOrCreate(dropper);
	pushFloatPos(L, pos);