some small changes

master
NathanSalapat 2016-11-13 21:07:29 -06:00
parent 566be67928
commit 7157d6c0ee
2 changed files with 1 additions and 3 deletions

View File

@ -68,9 +68,6 @@ minetest.register_node('drinks:juice_press', {
local instack = inv:get_stack("src", 1)
local fruitstack = instack:get_name()
local mod, fruit, trash = fruitstack:match("([^:]+):([^:]+)_([^:]+)")
print (mod)
print (fruit)
print (trash)
if drinks.juiceable[fruit] then
meta:set_string('fruit', fruit)
local outstack = inv:get_stack("dst", 1)

View File

@ -3,6 +3,7 @@ for i in ipairs (drinks.drink_table) do
local desc = drinks.drink_table[i][1]
local craft = drinks.drink_table[i][2]
local color = drinks.drink_table[i][3]
-- The color of the drink is all done in code, so we don't need to have multiple images.
--Actual Node registration
minetest.register_craftitem('drinks:jcu_'..desc, {