aboutsummaryrefslogtreecommitdiff
path: root/src/inventorymanager.cpp
AgeCommit message (Collapse)Author
2018-09-23Fix various code issues found by cppcheck (#7741)Paramat
Mapgen Singlenode: Remove 'flags' that duplicates a 'class Mapgen' member. Dungeongen: Initialise 'MMVManip *vm' to 'nullptr'. Inventorymanager: Remove assignment error 'found = '.
2018-04-02'fix' LINT, use InventoryLocation==SmallJoker
2018-04-02Run callback in IDropAction, refactor function argumentsSmallJoker
2018-04-02Add player inventory callbacksSmallJoker
2017-08-30Remove DSTACK support (#6346)Loïc Blot
Debugstacks is not useful, we don't really use it, the DebugStack is not pertinent, gdb and lldb are better if we really want to debug.
2017-08-18Optimize headers (part 2) (#6272)Loïc Blot
* Optimize headers (part 2) * less debug.h in headers * less remoteplayer.h for everybody * Cleanup (part 2) * camera.h: mesh.h * mapgen.h: mapnode.h * serverenvironment.h: mapblock.h * nodedef.h: shader.h
2017-08-18Modernize various files (part 2)Loic Blot
* range-based for loops * emplace_back instead of push_back * code style * C++ headers instead of C headers * Default operators * empty stl function
2017-07-21Player collisionbox: Make settableTeTpaAka
Breaks compatibility with old clients.
2017-07-01C++11 cleanup inventorymanager (#6077)Vincent Glize
* C++11 cleanup inventorymanager
2017-04-25Rename Scripting API files for consistencyShadowNinja
2017-03-13[CSM] Client side moddingLoic Blot
* rename GameScripting to ServerScripting * Make getBuiltinLuaPath static serverside * Add on_shutdown callback * Add on_receiving_chat_message & on_sending_chat_message callbacks * ScriptApiBase: use IGameDef instead of Server This permits to share common attribute between client & server * Enable mod security in client side modding without conditions
2017-01-08Move ServerEnvironment to dedicated cpp/header filesLoic Blot
* also cleanup some unneeded inclusions
2016-12-24Move PP() and PP2() macros to basic_macros.hRogier
Instead of redefining them everywhere.
2016-03-19Clean up StrfndShadowNinja
Changes: * Fix indentation. * Pass strings by const reference. * Merge Strfnd and WStrfnd into one class instead of copying them. * Remove trailing spaces. * Fix variable names. * Move to util. * Other miscellaneous style fixes.
2015-10-14Rename macros with two leading underscoresShadowNinja
These names are reserved for the compiler/library implementations.
2015-08-25Change i++ to ++iDavid Jones
2015-08-19Fix inventory replace bugest31
2015-07-19MoveItemSomewhere double bugfixest31
-> Fix bug where MoveSomewhere from an infinite source would fill the destination inventory with copies of itself. -> Fix bug where MoveSomewhere would needlessly call callbacks. -> Remove trailing whitespaces
2015-07-01Inventory manager style cleanup and further checksest31
2015-06-23Add MoveSomewhere inventory actionest31
Improve shift+click experience
2015-06-22Fix bug when craft input isn't replacedTeTpaAka
2015-04-01Move globals from main.cpp to more sane locationsCraig Robbins
Move debug streams to log.cpp|h Move GUI-related globals to clientlauncher Move g_settings and g_settings_path to settings.cpp|h Move g_menuclouds to clouds.cpp|h Move g_profiler to profiler.cpp|h
2015-03-24Don't send an InventoryAction at each setInventoryModified, we only need one ↵Loic Blot
SendInventory per inventory modification Client doesn't like to receive multiples SendInventory for one action, this can trigger glitches on clients (sometimes due to incorrect UDP packet ordering due to UDP protocol) This fix issue #2544
2015-03-07For usages of assert() that are meant to persist in Release builds (when ↵Craig Robbins
NDEBUG is defined), replace those usages with persistent alternatives
2015-01-13Performance fixes.onkrot
2014-11-19Clean up rollbackShadowNinja
2014-09-21Split settings into seperate source and header filesShadowNinja
This also cleans up settings a bit
2013-11-01Add a callback: minetest.register_on_craft(itemstack, player,Novatux
old_craft_grid, craft_inv) and minetest.register_craft_predict(itemstack, player, old_craft_grid, craft_inv)
2013-08-14Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl
2013-05-25Move scriptapi to separate folder (by sapier)sapier
On the lua side, notably minetest.env:<function>(<args>) should now be replaced by minetest.<function>(<args>). The old way is and will stay supported for a long time. Also: Update and clean up lua_api.txt (by celeron55) Move EnvRef to lua and remove add_rat and add_firefly (by kahrl) Add separate src/util/CMakeLists.txt, other minor fixes (by kahrl)
2013-02-24Update Copyright YearsSfan5
2013-02-24Change Minetest-c55 to MinetestPilzAdam
2012-09-02Fix moving stuff into a mismatched stack in a "infinite" inventoryPerttu Ahola
2012-09-02Make inventory GUI do sane things when server-side inventory acts unusuallyPerttu Ahola
2012-09-01Add InventoryList width property & allow custom crafting grids.Ilya Zhuravlev
2012-08-12Fix wrong amount of nodes being dropped from inventoryPerttu Ahola
2012-08-12Remove unwanted ! from ifs in inventory record-for-rollback codePerttu Ahola
2012-07-28Fix inventory segfault when rollback recording is disabledPerttu Ahola
2012-07-27Experimental-ish rollback functionalityPerttu Ahola
2012-07-25Add special return value -1 to inventry callbacksPerttu Ahola
2012-07-25Improve inventory callbacks a bitPerttu Ahola
2012-07-25Remove special handling of creative modePerttu Ahola
2012-07-25Detached inventory callbacks and reworked node metadata callbacksPerttu Ahola
2012-07-24Detached inventoriesPerttu Ahola
2012-06-17Properly and efficiently use split utility headersPerttu Ahola
2012-06-05Switch the license to be LGPLv2/later, with small parts still remaining as ↵Perttu Ahola
GPLv2/later, by agreement of major contributors
2012-06-03Properly handle dropping of items from nodes, and disallow moving items ↵Perttu Ahola
directly between nodes
2012-06-03on_metadata_inventory_{move,offer,take}Perttu Ahola
2012-01-22Client-side prediction of inventory changes, and some inventory menu fixesKahrl
2012-01-22Inventory menu (with dragging) improved. Crafting is now handled via a ↵Kahrl
IACTION_CRAFT inventory action.