Alias string to cotton
authorcupofinsane <cupofinsane@users.noreply.github.com>
Wed, 9 Jul 2014 18:40:18 +0000 (00:40 +0600)
committerBlockMen <nmuelll@web.de>
Sun, 13 Jul 2014 18:04:14 +0000 (20:04 +0200)
Cotton plants used to drop strings, now they drop farming:cotton. Some mods (namely, throwing) still use farming:string, therefore we need farming:string to be equal farming:cotton.

mods/farming/init.lua

index 4f65d5dd9a272ee5c175f077344530d53c0a577c..9245470fdba2f4b889ce254c45fdbb3761a4a45a 100644 (file)
@@ -50,10 +50,7 @@ farming.register_plant("farming:cotton", {
        fertility = {"grassland", "desert"}
 })
 
-minetest.register_craftitem("farming:string", {
-       description = "String",
-       inventory_image = "farming_cotton.png",
-})
+minetest.register_alias("farming:string", "farming:cotton")
 
 minetest.register_craft({
        output = "wool:white",