Time Nick Message 12:05 MinetestBot 02[git] 04Lourens-Rich -> 03minetest/minetest: Fix "Hunk #1 FAILED at 9 (different line endings)." 1365af7d2 https://git.io/fAFI2 (152018-09-23T12:03:05Z) 17:47 Wuzzy hey there 17:48 Wuzzy is there a way to instantly detect in Lua when an item was added or removed from the player inventory? 17:48 Wuzzy a callback would be ideal. i want to avoid polling 17:49 Krock https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L3680 17:50 Krock hello 17:50 Krock requires 5.0-dev, though. 18:16 Wuzzy is this always called when inventory changes? minetest.register_allow_player_inventory_action 18:20 Krock it is called when you move itemstacks around 18:20 sfan5 i'd imagine :set_stack bypasses those callbacks 18:21 Krock yes, also set_size and set_list 18:21 Krock I assumed the question was limited to direct user interactions 19:03 IceDragon Hello, I have a lua api question, is there a function that takes a face (an integer 0-5 representing a node's face) and a facedir and returns the face's new rotated equivalent? (whereis_face(face, facedir) => rotated_face), my use case is to determine where the "bottom" of a node is when it's rotated 19:05 paramat no 19:06 IceDragon ugh, I guess I'll have to write one then, thanks for the quick answer 19:07 Krock Screwdriver offers some conversion tables 19:07 Krock maybe have a look in there 19:07 Krock or pointed facedir to dir functions (not sure if that's what you want) 19:08 Krock - off - 19:13 MinetestBot 02[git] 04paramat -> 03minetest/minetest: Fix various code issues found by cppcheck (#7741) 138543df7 https://git.io/fAF0O (152018-09-23T19:12:39Z) 19:32 rubenwardy Wuzzy: I use a checksum in crafting to do thst 19:33 rubenwardy Sha1 of the inventory contents 19:34 Wuzzy rubenwardy: in crafting? huh? 19:35 Wuzzy crafting is not the only way to detect when inventory changed 19:35 Wuzzy i mean 19:35 Wuzzy there are many other ways the inventory contents might change 19:35 Wuzzy collecting item, using chest, craft item, direct inventory manipulation by mod, ... 19:36 Wuzzy all i need to 19:37 rubenwardy My mod 19:37 rubenwardy My mod crafting 19:37 rubenwardy My mod crafting uses a checksum to see if the inventory changed. It's not instant though 19:38 rubenwardy Can't type much now 20:08 MinetestBot 02[git] 04paramat -> 03minetest/minetest: Builtin//misc_helpers: Various fixes (#7737) 134a2a112 https://git.io/fAFEH (152018-09-23T20:06:51Z)