fix some bugs with cleaner and xpanes
parent
b7a24aec2a
commit
54b9cd4a77
|
@ -116,7 +116,7 @@ function xpanes.register_pane(name, def)
|
|||
groups = flatgroups,
|
||||
drop = "xpanes:" .. name .. "_flat",
|
||||
sounds = def.sounds,
|
||||
use_texture_alpha = def.use_texture_alpha or "opaque",
|
||||
use_texture_alpha = def.use_texture_alpha and "blend" or "clip",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {{-1/2, -1/2, -1/32, 1/2, 1/2, 1/32}},
|
||||
|
@ -145,7 +145,7 @@ function xpanes.register_pane(name, def)
|
|||
groups = groups,
|
||||
drop = "xpanes:" .. name .. "_flat",
|
||||
sounds = def.sounds,
|
||||
use_texture_alpha = def.use_texture_alpha or "clip",
|
||||
use_texture_alpha = def.use_texture_alpha and "blend" or "clip",
|
||||
node_box = {
|
||||
type = "connected",
|
||||
fixed = {{-1/32, -1/2, -1/32, 1/32, 1/2, 1/32}},
|
||||
|
@ -168,7 +168,6 @@ xpanes.register_pane("pane", {
|
|||
textures = {"default_glass.png", "", "xpanes_edge.png"},
|
||||
inventory_image = "default_glass.png",
|
||||
wield_image = "default_glass.png",
|
||||
use_texture_alpha = "clip",
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
groups = {snappy=2, cracky=3, oddly_breakable_by_hand=3},
|
||||
recipe = {
|
||||
|
@ -228,6 +227,8 @@ if minetest.get_modpath("doors") then
|
|||
sounds = default.node_sound_metal_defaults(),
|
||||
sound_open = "xpanes_steel_bar_door_open",
|
||||
sound_close = "xpanes_steel_bar_door_close",
|
||||
gain_open = 0.15,
|
||||
gain_close = 0.13,
|
||||
recipe = {
|
||||
{"xpanes:bar_flat", "xpanes:bar_flat"},
|
||||
{"xpanes:bar_flat", "xpanes:bar_flat"},
|
||||
|
@ -246,6 +247,8 @@ if minetest.get_modpath("doors") then
|
|||
sounds = default.node_sound_metal_defaults(),
|
||||
sound_open = "xpanes_steel_bar_door_open",
|
||||
sound_close = "xpanes_steel_bar_door_close",
|
||||
gain_open = 0.15,
|
||||
gain_close = 0.13,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
# textdomain: xpanes
|
||||
Glass Pane=Vitra Vitraĵo
|
||||
Obsidian Glass Pane=Obsidiana Vitra Vitraĵo
|
||||
Steel Bars=Ŝtalaj Baraĵoj
|
||||
Steel Bar Door=Ŝtala Baraĵa Pordo
|
||||
Steel Bar Trapdoor=Ŝtala Baraĵa Plankpordo
|
|
@ -1,6 +1,6 @@
|
|||
# textdomain: xpanes
|
||||
Glass Pane=Pannello di vetro
|
||||
Obsidian Glass Pane=Pannello di vetro d'ossidiana
|
||||
Steel Bars=Sbarre d'acciaio
|
||||
Steel Bar Door=Porta con sbarre d'acciaio
|
||||
Steel Bar Trapdoor=Botola con sbarre d'acciaio
|
||||
# textdomain: xpanes
|
||||
Glass Pane=Pannello di vetro
|
||||
Obsidian Glass Pane=Pannello di vetro d'ossidiana
|
||||
Steel Bars=Sbarre d'acciaio
|
||||
Steel Bar Door=Porta con sbarre d'acciaio
|
||||
Steel Bar Trapdoor=Botola con sbarre d'acciaio
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
# textdomain: xpanes
|
||||
Glass Pane=板ガラス
|
||||
Obsidian Glass Pane=黒曜石の板ガラス
|
||||
Steel Bars=鉄棒の柵
|
||||
Steel Bar Door=鉄棒のドア
|
||||
Steel Bar Trapdoor=鉄棒のトラップドア
|
|
@ -0,0 +1,6 @@
|
|||
# textdomain: xpanes
|
||||
Glass Pane=lo blaci plita
|
||||
Obsidian Glass Pane=lo je'erma'ablaci blaci plita
|
||||
Steel Bars=lo gasta garna
|
||||
Steel Bar Door=lo gasta garna vrogai
|
||||
Steel Bar Trapdoor=lo gasta garna lolvrogai
|
|
@ -0,0 +1,6 @@
|
|||
# textdomain: xpanes
|
||||
Glass Pane=Szyba
|
||||
Obsidian Glass Pane=Obsydianowa szyba
|
||||
Steel Bars=Stalowe kraty
|
||||
Steel Bar Door=Drzwi ze stalowych krat
|
||||
Steel Bar Trapdoor=Właz ze stalowych krat
|
|
@ -0,0 +1,6 @@
|
|||
# textdomain: xpanes
|
||||
Glass Pane=Painel de Vidro
|
||||
Obsidian Glass Pane=Painel de Vidro de Obsidiana
|
||||
Steel Bars=Barras de Aço
|
||||
Steel Bar Door=Porta de Barras de Aço
|
||||
Steel Bar Trapdoor=Alçapão de Barras de Aço
|
|
@ -1,6 +0,0 @@
|
|||
# textdomain: xpanes
|
||||
Glass Pane=Glasruta
|
||||
Obsidian Glass Pane=Obsidian Glasruta
|
||||
Steel Bars=Stålgaller
|
||||
Steel Bar Door=Stålgallers Dörr
|
||||
Steel Bar Trapdoor=Stålgallers Fallucka
|
|
@ -0,0 +1,6 @@
|
|||
# textdomain: xpanes
|
||||
Glass Pane=Tabuľa skla
|
||||
Obsidian Glass Pane=Tabuľa obsidiánového skla
|
||||
Steel Bars=Oceľové mreže
|
||||
Steel Bar Door=Dvere z oceľových mreží
|
||||
Steel Bar Trapdoor=Padajúce dvere z oceľových mreží
|
|
@ -0,0 +1,6 @@
|
|||
# textdomain: xpanes
|
||||
Glass Pane=Glasruta
|
||||
Obsidian Glass Pane=Obsidianglasruta
|
||||
Steel Bars=Stålgaller
|
||||
Steel Bar Door=Stålgallerdörr
|
||||
Steel Bar Trapdoor=Stålgallerfallucka
|
|
@ -0,0 +1,6 @@
|
|||
# textdomain: xpanes
|
||||
Glass Pane=Скляна Панель
|
||||
Obsidian Glass Pane=Скляна Панель З Обсидіану
|
||||
Steel Bars=Сталева Решітка
|
||||
Steel Bar Door=Сталеві Двері З Решіткою
|
||||
Steel Bar Trapdoor=Сталевий Люк З Решіткою
|
Binary file not shown.
Before Width: | Height: | Size: 605 B After Width: | Height: | Size: 552 B |
Binary file not shown.
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 301 B |
Binary file not shown.
Before Width: | Height: | Size: 261 B After Width: | Height: | Size: 208 B |
|
@ -53,8 +53,8 @@ local function clean()
|
|||
for j = 1, #objs do
|
||||
local obj = objs[j]
|
||||
if not obj:is_player() then
|
||||
local entname = obj:get_luaentity().name
|
||||
if not minetest.registered_entities[entname] then
|
||||
local ent = obj:get_luaentity()
|
||||
if not (ent) or not ( minetest.registered_entities[ent.name] ) then
|
||||
obj:remove()
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue