summaryrefslogtreecommitdiff
path: root/technic/machines
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-11-23 10:39:11 -0500
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-11-23 10:39:11 -0500
commit2d8ff9f889450fb5c36016276997544aae98a350 (patch)
tree636ddf5e6a9b444a60d7cab82e93ccffb037355d /technic/machines
parent646d696c62a6b408100e65164b5cd71a4793ab9b (diff)
downloaddreambuilder_modpack-2d8ff9f889450fb5c36016276997544aae98a350.tar
dreambuilder_modpack-2d8ff9f889450fb5c36016276997544aae98a350.tar.gz
dreambuilder_modpack-2d8ff9f889450fb5c36016276997544aae98a350.tar.bz2
dreambuilder_modpack-2d8ff9f889450fb5c36016276997544aae98a350.tar.xz
dreambuilder_modpack-2d8ff9f889450fb5c36016276997544aae98a350.zip
update digistuff, farming-redo, homedecor, hotbar, roads,
pipeworks, prefab_redo, rgblightstone, signs_lib, street_signs, technic, unifieddyes, and worldedit
Diffstat (limited to 'technic/machines')
-rw-r--r--technic/machines/HV/quarry.lua12
1 files changed, 3 insertions, 9 deletions
diff --git a/technic/machines/HV/quarry.lua b/technic/machines/HV/quarry.lua
index b7cc501..0a45559 100644
--- a/technic/machines/HV/quarry.lua
+++ b/technic/machines/HV/quarry.lua
@@ -146,15 +146,9 @@ local function quarry_run(pos, node)
dignode = technic.get_or_load_node(digpos) or minetest.get_node(digpos)
local dignodedef = minetest.registered_nodes[dignode.name] or {diggable=false}
-- doors mod among other thing does NOT like a nil digger...
- local fakedigger = {
- get_player_name = function()
- return "!technic_quarry_fake_digger"
- end,
- is_player = function() return false end,
- get_wielded_item = function()
- return ItemStack("air")
- end,
- }
+ local fakedigger = pipeworks.create_fake_player({
+ name = owner
+ })
if not dignodedef.diggable or (dignodedef.can_dig and not dignodedef.can_dig(digpos, fakedigger)) then
can_dig = false
end