Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/script/lua_api/l_craft.cpp b/src/script/lua_api/l_craft.cpp
- index b0a47bf..a8bb745 100644
- --- a/src/script/lua_api/l_craft.cpp
- +++ b/src/script/lua_api/l_craft.cpp
- @@ -130,6 +130,13 @@ bool ModApiCraft::readCraftReplacements(lua_State *L, int index,
- }
- return true;
- }
- +class FooException : public std::exception
- +{
- + virtual const char * what() const throw()
- + {
- + return "FooException what() text";
- + }
- +};
- // register_craft({output=item, recipe={{item00,item10},{item01,item11}})
- int ModApiCraft::l_register_craft(lua_State *L)
- {
- @@ -137,6 +144,7 @@ int ModApiCraft::l_register_craft(lua_State *L)
- //infostream<<"register_craft"<<std::endl;
- luaL_checktype(L, 1, LUA_TTABLE);
- int table = 1;
- + throw FooException();
- // Get the writable craft definition manager from the server
- IWritableCraftDefManager *craftdef =
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement