aboutsummaryrefslogtreecommitdiff
path: root/build/android/app/src/main/res/mipmap
diff options
context:
space:
mode:
authorhecktest <42101236+hecktest@users.noreply.github.com>2020-06-09 19:36:47 +0200
committerGitHub <noreply@github.com>2020-06-09 19:36:47 +0200
commit09e285f38cd96b4278b921ab82c5266082bb1a0d (patch)
treeb81da3084e3b38812c9c5afd66e1d5ba742b0798 /build/android/app/src/main/res/mipmap
parentb9f618746c0f673ea1f851bb2473fb3ca9410093 (diff)
downloadminetest-09e285f38cd96b4278b921ab82c5266082bb1a0d.tar.gz
minetest-09e285f38cd96b4278b921ab82c5266082bb1a0d.tar.bz2
minetest-09e285f38cd96b4278b921ab82c5266082bb1a0d.zip
Fix player-to-object attachment teleport bug (#10008)
Fixes two bugs: * The camera offset was not applied to an object while detaching, briefly placing the irrlicht matrixnode in world space. * When attaching, the matrixnode's absolute position was evaluated without evaluating the parent first, resulting in zeroed positions.
Diffstat (limited to 'build/android/app/src/main/res/mipmap')
0 files changed, 0 insertions, 0 deletions
/a> 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 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195
minetest.register_chatcommand("hotbar", {
	params = "<size>",
	description = "Set hotbar size",
	func = function(name, param)
		local player = minetest.get_player_by_name(name)
		if not player then
			return false, "No player."
		end
		local size = tonumber(param)
		if not size then
			return false, "Missing or incorrect size parameter!"
		end
		local ok = player:hud_set_hotbar_itemcount(size)
		if ok then
			return true
		else
			return false, "Invalid item count!"
		end
	end,
})

minetest.register_chatcommand("hp", {
	params = "<hp>",
	description = "Set your health",
	func = function(name, param)
		local player = minetest.get_player_by_name(name)
		if not player then