Fix cart inventory image rendering (#2666)
authorZughy <63455151+Zughy@users.noreply.github.com>
Thu, 30 Apr 2020 17:51:39 +0000 (17:51 +0000)
committerGitHub <noreply@github.com>
Thu, 30 Apr 2020 17:51:39 +0000 (19:51 +0200)
Before it was rendering the side on both the side and the front of the minetest.inventorycube

mods/carts/cart_entity.lua

index 02ff6cde104cf7b65c13ebf99f793bed05ad8b66..39c4c5ca01709b28625e652cd5768988e29d3a21 100644 (file)
@@ -389,7 +389,7 @@ minetest.register_entity("carts:cart", cart_entity)
 
 minetest.register_craftitem("carts:cart", {
        description = S("Cart") .. "\n" .. S("(Sneak+Click to pick up)"),
-       inventory_image = minetest.inventorycube("carts_cart_top.png", "carts_cart_side.png", "carts_cart_side.png"),
+       inventory_image = minetest.inventorycube("carts_cart_top.png", "carts_cart_front.png", "carts_cart_side.png"),
        wield_image = "carts_cart_side.png",
        on_place = function(itemstack, placer, pointed_thing)
                local under = pointed_thing.under