tweak bucket again shutdown turret for debug

master
maikerumine 2016-11-19 19:53:38 -05:00
parent 50fdff34ec
commit 6876265538
3 changed files with 5 additions and 1 deletions

View File

@ -346,4 +346,4 @@ minetest.register_craft({
output = "default:steel_ingot 2",
recipe = "bucket:bucket_empty",
})
]]
]]

Binary file not shown.

View File

@ -79,6 +79,8 @@ minetest.register_entity("shooter:turret_entity", {
-- Remove duplicates
get_turret_entity(self.pos)
end,
--[[
on_rightclick = function(self, clicker)
if self.player == nil then
clicker:set_attach(self.object, "", {x=0,y=5,z=-8}, {x=0,y=0,z=0})
@ -98,6 +100,8 @@ minetest.register_entity("shooter:turret_entity", {
self.player = nil
end
end,
]]
on_step = function(self, dtime)
self.timer = self.timer + dtime
if self.timer < 0.1 then