From 6e222f37cb1f761a24e3d144fdce288cfdf1814f Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Sun, 3 Oct 2010 13:30:39 +0000 Subject: [PATCH] Modified [removeitem] deprecation message so that it is no longer fatal. --- data/lua/wml/items.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/data/lua/wml/items.lua b/data/lua/wml/items.lua index e84ef192bad..2633ad7197c 100644 --- a/data/lua/wml/items.lua +++ b/data/lua/wml/items.lua @@ -78,7 +78,4 @@ end -- [removeitem] is deprecated, so print a WML error and call [remove_item] -- Remove after 1.9.3 -function wml_actions.removeitem(cfg) - wml_actions.remove_item(cfg) - helper.wml_error "Usage of [removeitem] is deprecated; support will be removed in 1.9.3. Use [remove_item] instead." -end +wml_actions.removeitem = helper.deprecate("Usage of [removeitem] is deprecated; support will be removed in 1.9.3. Use [remove_item] instead.", wml_actions.remove_item)