1
0
cuberite-2a/src
Nate e7b552603f Handle the lapis slot separately (#4286)
This is my attempt to fix #4112. The root cause of the issue was that the lapis slot was treated exactly the same as the enchanting slot, so it on the server side it would only ever slot one item.

My fix is to check if its the second slot in the window, then check if it's lapis (it would slot whatever). If it is lapis I call the base click handler.
2018-08-17 09:08:06 +01:00
..
Bindings Experience orb (#4259) 2018-08-02 15:59:10 +01:00
BlockEntities cWorld: Manually bind deprecated broadcast functions (#4265) 2018-07-27 00:12:41 +01:00
Blocks Experience orb (#4259) 2018-08-02 15:59:10 +01:00
Entities Experience orb (#4259) 2018-08-02 15:59:10 +01:00
Generating CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
HTTP CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Items CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
mbedTLS++ CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Mobs Experience orb (#4259) 2018-08-02 15:59:10 +01:00
Noise Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
OSSupport Fix: Create players folder recursively (#4283) 2018-08-12 23:47:38 +01:00
Protocol CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Resources New icon colors (#3675) 2017-06-03 18:49:02 +02:00
Simulator Add new flow direction calculating algorithm (#4160) 2018-07-27 10:01:53 +01:00
UI Handle the lapis slot separately (#4286) 2018-08-17 09:08:06 +01:00
WorldStorage CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
AllocationPool.h Optimise chunk set (#4260) 2018-07-23 19:12:51 +01:00
BiomeDef.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
BiomeDef.h Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
BlockArea.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
BlockArea.h cBlockArea: Write all present data types by default (#4252) 2018-07-19 22:36:46 +01:00
BlockID.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
BlockID.h Minor changes (#3909) 2017-08-24 11:19:40 +02:00
BlockInfo.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
BlockInfo.h cBlockInfo: Deprecate direct access to variables. (#4184) 2018-02-20 10:43:28 +00:00
BlockInServerPluginInterface.h Replaced includes with forward declarations 2017-08-13 12:31:10 +01:00
BlockTracer.h Tracer replacement (#3704) 2017-05-11 13:34:36 +01:00
BoundingBox.cpp Fully implemented leashes (#3798) 2017-08-21 10:46:41 +02:00
BoundingBox.h Fully implemented leashes (#3798) 2017-08-21 10:46:41 +02:00
BrewingRecipes.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
BrewingRecipes.h Minor cBrewingRecipes cleanup (#3731) 2017-05-28 20:08:23 +02:00
Broadcaster.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
BuildInfo.h.cmake Added abilty to set build info 2014-09-10 16:07:00 +01:00
ByteBuffer.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
ByteBuffer.h Add cUUID class (#3871) 2017-08-25 13:43:18 +01:00
ChatColor.cpp Refactored cChatColor 2014-07-19 11:09:39 -07:00
ChatColor.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
CheckBasicStyle.lua CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Chunk.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Chunk.h Broadcast refactor (#4264) 2018-07-24 22:30:49 +01:00
ChunkData.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
ChunkData.h cChunk and cChunkData: Use vectors for block get and set functions (#4172) 2018-02-04 22:15:31 +00:00
ChunkDataCallback.h Optimise chunk set (#4260) 2018-07-23 19:12:51 +01:00
ChunkDef.h Broadcast refactor (#4264) 2018-07-24 22:30:49 +01:00
ChunkMap.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
ChunkMap.h Broadcast refactor (#4264) 2018-07-24 22:30:49 +01:00
ChunkSender.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
ChunkSender.h Broadcast refactor (#4264) 2018-07-24 22:30:49 +01:00
ChunkStay.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
ChunkStay.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
ClientHandle.cpp cWorld: Manually bind deprecated broadcast functions (#4265) 2018-07-27 00:12:41 +01:00
ClientHandle.h recover hotbar selected slot after reconnect (#4249) 2018-07-22 23:23:33 +01:00
CMakeLists.txt Broadcast refactor (#4264) 2018-07-24 22:30:49 +01:00
Color.cpp Leather Armor can now be dyed. 2015-07-15 14:05:36 -06:00
Color.h Lua plugin cColor (#3833) 2017-07-12 12:30:43 +02:00
CommandOutput.cpp Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
CommandOutput.h CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
CompositeChat.cpp CompositeChat: Use shorter JSON format. 2016-12-16 00:07:23 +01:00
CompositeChat.h Fixed cCompositeChat's constructor LuaAPI bindings. 2016-09-25 12:42:05 +02:00
CraftingRecipes.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
CraftingRecipes.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Cuberite.vcxproj.user Added working directory for x64 builds (#4037) 2017-09-20 19:01:46 +01:00
Cuboid.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Cuboid.h Add TOLUA_EXPOSITION for readability 2017-08-28 14:36:23 +01:00
DeadlockDetect.cpp Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
DeadlockDetect.h Clang 5.0 fixes 2017-05-21 12:19:06 +02:00
Defines.h CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
EffectID.h Update tolua and export EffectID 2017-06-29 18:58:48 +02:00
Enchantments.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Enchantments.h Minor changes (#3909) 2017-08-24 11:19:40 +02:00
Endianness.h Fixes compilation failures on MacOSX 10.10 2015-07-09 11:15:37 -06:00
FastRandom.cpp Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
FastRandom.h Tentative fix for player-limit race condition (#3862) 2017-07-28 17:54:40 +01:00
ForEachChunkProvider.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
FunctionRef.h Stop cFunctionRef constructor from disabling default copy constructor. (#4173) 2018-07-24 22:30:05 +01:00
FurnaceRecipe.cpp Smelting Gives Experience (#4094) 2018-04-11 07:46:11 +01:00
FurnaceRecipe.h Smelting Gives Experience (#4094) 2018-04-11 07:46:11 +01:00
Globals.cpp
Globals.h Deal with covered switches consistently (#4161) 2018-02-04 23:07:12 +00:00
IniFile.cpp Use clang-tidy to check more code conventions (#4214) 2018-05-06 18:07:34 +01:00
IniFile.h Use clang-tidy to check more code conventions (#4214) 2018-05-06 18:07:34 +01:00
Inventory.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Inventory.h Removed unused forward declarations (#3888) 2017-08-03 15:10:29 +02:00
Item.cpp Improved fishing rewards (#4120) 2018-01-05 14:32:30 +00:00
Item.h Item durability loss now depends on the item used. (#4123) 2018-01-05 11:28:06 +00:00
ItemGrid.cpp cItemGrid: Allocate storage lazily (#4083) 2018-01-21 18:45:13 +00:00
ItemGrid.h cItemGrid: Allocate storage lazily (#4083) 2018-01-21 18:45:13 +00:00
LazyArray.h cItemGrid: Allocate storage lazily (#4083) 2018-01-21 18:45:13 +00:00
LightingThread.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
LightingThread.h cWorld Threads: Seperate initialization and thread start. 2017-10-21 19:33:22 +02:00
LinearInterpolation.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
LinearInterpolation.h Unified the doxy-comment format. 2015-07-31 16:49:10 +02:00
LinearUpscale.h Fixed RasPi builds of unit tests. 2016-08-04 20:47:53 +02:00
LineBlockTracer.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
LineBlockTracer.h Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
Logger.cpp Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
Logger.h Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
LoggerListeners.cpp Flush stdout after resetting console colour. (#4240) 2018-06-20 09:15:57 +02:00
LoggerListeners.h Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
LoggerSimple.h Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
main.cpp Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
Map.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Map.h Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
MapManager.cpp Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
MapManager.h Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
Matrix4.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
MemorySettingsRepository.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
MemorySettingsRepository.h Fixed RasPi builds of unit tests. 2016-08-04 20:47:53 +02:00
MobCensus.cpp Deal with covered switches consistently (#4161) 2018-02-04 23:07:12 +00:00
MobCensus.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
MobFamilyCollecter.cpp Removed double includes (#3885) 2017-08-02 19:57:20 +01:00
MobFamilyCollecter.h Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
MobProximityCounter.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
MobProximityCounter.h Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
MobSpawner.cpp Experience orb (#4259) 2018-08-02 15:59:10 +01:00
MobSpawner.h Removed duplicate code (#4198) 2018-04-11 12:17:30 +01:00
MonsterConfig.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
MonsterConfig.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
NetherPortalScanner.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
NetherPortalScanner.h Use clang-tidy to check more code conventions (#4214) 2018-05-06 18:07:34 +01:00
OpaqueWorld.h Broadcast refactor (#4264) 2018-07-24 22:30:49 +01:00
OverridesSettingsRepository.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
OverridesSettingsRepository.h Clang 5.0 fixes 2017-05-21 12:19:06 +02:00
ProbabDistrib.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
ProbabDistrib.h FastRandom rewrite (#3754) 2017-06-13 21:35:30 +02:00
RankManager.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
RankManager.h Add cUUID class (#3871) 2017-08-25 13:43:18 +01:00
RCONServer.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
RCONServer.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Root.cpp Use clang-tidy to check more code conventions (#4214) 2018-05-06 18:07:34 +01:00
Root.h Broadcast playerlist removal in every world (#4201) 2018-04-02 18:39:54 +01:00
Scoreboard.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Scoreboard.h Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
Server.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Server.h Update mbedtls to 2.5.1 (#3964) 2017-08-30 15:00:06 +01:00
SetChunkData.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
SetChunkData.h Optimise chunk set (#4260) 2018-07-23 19:12:51 +01:00
SettingsRepositoryInterface.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
SpawnPrepare.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
SpawnPrepare.h Potential spawn prepare fix (#3924) 2017-08-22 14:34:43 +02:00
Statistics.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Statistics.h CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Stopwatch.h CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
StringCompression.cpp Fixed type-casting-related warnings. 2016-08-24 22:26:53 +02:00
StringCompression.h Unified the doxy-comment format. 2015-07-31 16:49:10 +02:00
StringUtils.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
StringUtils.h CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Tracer.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Tracer.h Use clang-tidy to check more code conventions (#4214) 2018-05-06 18:07:34 +01:00
UUID.cpp Make offline UUIDs consistent with vanilla. (#4178) 2018-07-20 00:30:09 +01:00
UUID.h Add cUUID class (#3871) 2017-08-25 13:43:18 +01:00
Vector3.h CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
VoronoiMap.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
VoronoiMap.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
WebAdmin.cpp Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
WebAdmin.h Removed unused forward declarations (#3888) 2017-08-03 15:10:29 +02:00
World.cpp Experience orb (#4259) 2018-08-02 15:59:10 +01:00
World.h Experience orb (#4259) 2018-08-02 15:59:10 +01:00
XMLParser.h Minor changes (#3909) 2017-08-24 11:19:40 +02:00