diff --git a/games/default/files/bonusbox/init.lua b/games/default/files/bonusbox/init.lua index 9cc687efa..2cce8d327 100644 --- a/games/default/files/bonusbox/init.lua +++ b/games/default/files/bonusbox/init.lua @@ -1,8 +1,3 @@ ---To add or delete items modify the lines below. ---Add or delete local item# ---For each local item# add or delete the minetest.spawn_item in the next section. - - local item_spawn = function(pos, node) minetest.spawn_item({x=pos.x-0.4,y=pos.y+0.58,z=pos.z-0.2}, "default:steel_ingot 2") minetest.spawn_item({x=pos.x,y=pos.y+0.58,z=pos.z}, "default:emerald") @@ -33,7 +28,7 @@ minetest.register_node("bonusbox:chest", { {-0.483652, 0.246909, -0.483652, 0.483652, 0.5, 0.169932}, -- NodeBox4 } }, - groups = {choppy = 2}, + groups = {choppy = 2, not_in_creative_inventory=1}, sounds = default.node_sound_wood_defaults(), on_rightclick = item_spawn, }) diff --git a/games/default/files/crafting/creative.lua b/games/default/files/crafting/creative.lua index f6e452c8b..31fa11fc1 100644 --- a/games/default/files/crafting/creative.lua +++ b/games/default/files/crafting/creative.lua @@ -190,7 +190,7 @@ crafting.set_creative_formspec = function(player, start_i, pagenum, show, page, reset_menu_item_bg() pagenum = math.floor(pagenum) or 1 local pagemax = math.floor((crafting.creative_inventory_size-1) / (9*5) + 1) - local slider_height = 4/pagemax + local slider_height = 4.15/pagemax local slider_pos = slider_height*(pagenum-1)+2.2 local player_name = player:get_player_name() crafting.start_is[player_name] = start_i @@ -279,7 +279,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) end if fields.default then set_inv("all") - page = 'nix' + page = nil end if fields.food then set_inv("#food") diff --git a/games/default/files/crafting/textures/crafting_creative_active.png b/games/default/files/crafting/textures/crafting_creative_active.png index ea7d69610..d45fa8961 100644 Binary files a/games/default/files/crafting/textures/crafting_creative_active.png and b/games/default/files/crafting/textures/crafting_creative_active.png differ diff --git a/games/default/files/item_drop/init.lua b/games/default/files/item_drop/init.lua index f7763c57f..9325e6829 100644 --- a/games/default/files/item_drop/init.lua +++ b/games/default/files/item_drop/init.lua @@ -277,7 +277,7 @@ core.register_entity(":__builtin:item", { end if item_drop_settings.random_item_velocity == true then minetest.after(0, function() - local vel = self.object:getvelocity() + local vel = self.object:getvelocity() or {x=0, y=0, z=0} if vel.x == 0 and vel.z == 0 then local x = math.random(1, 5) if math.random(1,2) == 1 then