diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-10-18 16:18:07 +0200 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-10-18 16:18:07 +0200 |
commit | 1a7d3d8188d3f484b6c3f0f05fd057d543a34725 (patch) | |
tree | eeb487998aa86e01c9a7d55d4ff1156cc598b349 /builtin/game | |
parent | 1e4f3549292472323d49ffad4e856ba60dd81e0c (diff) | |
download | dragonfireclient-1a7d3d8188d3f484b6c3f0f05fd057d543a34725.tar.xz |
Extended ClientObjectRef; Improved CrystalPvP
Diffstat (limited to 'builtin/game')
-rw-r--r-- | builtin/game/item.lua | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/builtin/game/item.lua b/builtin/game/item.lua index f680ce0d4..2c43a8548 100644 --- a/builtin/game/item.lua +++ b/builtin/game/item.lua @@ -24,19 +24,6 @@ function core.inventorycube(img1, img2, img3) .. "{" .. img3:gsub("%^", "&") end -function core.get_pointed_thing_position(pointed_thing, above) - if pointed_thing.type == "node" then - if above then - -- The position where a node would be placed - return pointed_thing.above - end - -- The position where a node would be dug - return pointed_thing.under - elseif pointed_thing.type == "object" then - return pointed_thing.ref and pointed_thing.ref:get_pos() - end -end - function core.dir_to_facedir(dir, is6d) --account for y if requested if is6d and math.abs(dir.y) > math.abs(dir.x) and math.abs(dir.y) > math.abs(dir.z) then |