forked from mtcontrib/maidroid
Compare commits
3 Commits
nalc-1.2.0
...
f83705bb6c
Author | SHA1 | Date | |
---|---|---|---|
f83705bb6c | |||
ec56bc4325 | |||
2f63c8aa42 |
@ -1,3 +1,5 @@
|
|||||||
|
※ This repository has not been actively updated for a long time.
|
||||||
|
|
||||||
# Maidroid
|
# Maidroid
|
||||||
|
|
||||||
<img src=http://i.imgur.com/oWjrLtK.png>
|
<img src=http://i.imgur.com/oWjrLtK.png>
|
||||||
|
@ -14,6 +14,7 @@ minetest.register_tool("maidroid_tool:capture_rod", {
|
|||||||
|
|
||||||
local obj = pointed_thing.ref
|
local obj = pointed_thing.ref
|
||||||
local luaentity = obj:get_luaentity()
|
local luaentity = obj:get_luaentity()
|
||||||
|
if not luaentity then return end
|
||||||
if not maidroid.is_maidroid(luaentity.name) then
|
if not maidroid.is_maidroid(luaentity.name) then
|
||||||
if luaentity.name == "__builtin:item" then
|
if luaentity.name == "__builtin:item" then
|
||||||
luaentity:on_punch(user)
|
luaentity:on_punch(user)
|
||||||
|
Reference in New Issue
Block a user