From 4a99efd6b0320ad9bc718b43a52b7d9981f75a17 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 5 Mar 2016 11:34:01 +0100 Subject: [PATCH] Plugin: Fix unusability of carpentry tool and fertilizer. --- plugins/server/PleaseTheIslandGod.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/server/PleaseTheIslandGod.py b/plugins/server/PleaseTheIslandGod.py index 6cbfdf4..7e45e15 100644 --- a/plugins/server/PleaseTheIslandGod.py +++ b/plugins/server/PleaseTheIslandGod.py @@ -378,10 +378,12 @@ def play_use_attempt_hook(t, tt): log("You CAN'T use a " + world_db["ThingTypes"][type]["TT_NAME"] + " without some wood in your inventory.") return False - elif (tt["TT_TOOL"] == "fertilizer" - and not world_db["MAP"][pos] == ord(".")): - log("Can only make soil out of NON-SOIL earth.") - return False + return True + elif tt["TT_TOOL"] == "fertilizer": + if not world_db["MAP"][pos] == ord("."): + log("Can only make soil out of NON-SOIL earth.") + return False + return True elif tt["TT_TOOL"] == "wood": log("To use wood, you NEED a carpentry tool.") return False -- 2.30.2