Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Minimal game: Use field 'tiles' instead of 'tile_images'
  • Loading branch information
Rogier-5 authored and paramat committed Dec 24, 2016
1 parent 4d4b8bb commit f4d718c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions games/minimal/mods/experimental/init.lua
Expand Up @@ -28,7 +28,7 @@ minetest.after(1.0, switch_player_visual)
]]

minetest.register_node("experimental:soundblock", {
tile_images = {"unknown_node.png", "default_tnt_bottom.png",
tiles = {"unknown_node.png", "default_tnt_bottom.png",
"default_tnt_side.png", "default_tnt_side.png",
"default_tnt_side.png", "default_tnt_side.png"},
inventory_image = minetest.inventorycube("unknown_node.png",
Expand Down Expand Up @@ -120,7 +120,7 @@ minetest.register_craft({
})
minetest.register_node("experimental:tnt", {
tile_images = {"default_tnt_top.png", "default_tnt_bottom.png",
tiles = {"default_tnt_top.png", "default_tnt_bottom.png",
"default_tnt_side.png", "default_tnt_side.png",
"default_tnt_side.png", "default_tnt_side.png"},
inventory_image = minetest.inventorycube("default_tnt_top.png",
Expand Down Expand Up @@ -453,7 +453,7 @@ minetest.register_abm({
minetest.register_node("experimental:tester_node_1", {
description = "Tester Node 1 (construct/destruct/timer)",
tile_images = {"wieldhand.png"},
tiles = {"wieldhand.png"},
groups = {oddly_breakable_by_hand=2},
sounds = default.node_sound_wood_defaults(),
-- This was known to cause a bug in minetest.item_place_node() when used
Expand Down
4 changes: 2 additions & 2 deletions games/minimal/mods/stairs/init.lua
Expand Up @@ -5,7 +5,7 @@ function stairs.register_stair(subname, recipeitem, groups, images, description)
minetest.register_node("stairs:stair_" .. subname, {
description = description,
drawtype = "nodebox",
tile_images = images,
tiles = images,
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = true,
Expand Down Expand Up @@ -34,7 +34,7 @@ function stairs.register_slab(subname, recipeitem, groups, images, description)
minetest.register_node("stairs:slab_" .. subname, {
description = description,
drawtype = "nodebox",
tile_images = images,
tiles = images,
paramtype = "light",
is_ground_content = true,
groups = groups,
Expand Down

0 comments on commit f4d718c

Please sign in to comment.