Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added null check for position (#4366) | Lukas Pioch | 2019-08-11 | 1 | -0/+5 |
| | |||||
* | Check for nil in cWorld:SpawnSplitExperienceOrbs binding (#4354) | Mark Asp | 2019-07-28 | 1 | -1/+6 |
| | | | | | | Adds explicit nil check for 'position' parameter to prevent crashes if invalid. Fixes #4352 | ||||
* | Experience orb (#4259) | changyong guo | 2018-08-02 | 1 | -0/+80 |
| | | | | | | | * Replace cWorld::FindClosesPlayer with cWorld::DoWithClosestPlayer * Implement experience reward splitting into the orb sizes used in vanilla * Modified speed calculation in cExpOrb::Tick to make the orbs fly towards the player Fixes #4216 | ||||
* | cWorld: Manually bind deprecated broadcast functions (#4265) | peterbell10 | 2018-07-27 | 1 | -53/+266 |
| | | | Ref: https://github.com/cuberite/cuberite/pull/4264#discussion_r204769193 | ||||
* | CheckBasicStyle: Check number of empty lines between functions (#4267) | peterbell10 | 2018-07-26 | 1 | -1/+0 |
| | | | | Add check for number of empty lines between functions and fix the corresponding failures | ||||
* | Broadcast refactor (#4264) | peterbell10 | 2018-07-24 | 1 | -2/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | * Move Broadcast functions from cChunkMap to cBroadcaster - Remove cBroadcastInterface in favour of cBroadcaster. - cChunk: Remove broadcast functions. * resurect broadcast interface * Absorb cBroadcaster into cWorld. Removes the need for forwarding the function calls. * Improve const-correctness * Use Int8 instead of char + Comment `ForClients` functions * Improve comments * Broadcaster: Rename ForClients functions | ||||
* | Prefer static_cast to reinterpret_cast (#4223) | peterbell10 | 2018-05-02 | 1 | -1/+1 |
| | | | | | | | * Change reinterpret_cast -> static_cast wherever possible * Remove more unnecessary `const_cast`s. reinterpret_casts should be avoided for the same reason as c-style casts - they don't do any type-checking. reinterpret_cast was mainly being used for down-casting in inheritance hierarchies but static_cast works just as well while also making sure that there is actually an inheritance relationship there. | ||||
* | Removed UTF-8 BOM (#4033) | Lukas Pioch | 2017-09-19 | 1 | -1/+1 |
| | |||||
* | Replace ItemCallbacks with lambdas (#3993) | peterbell10 | 2017-09-11 | 1 | -3/+3 |
| | |||||
* | Revert "Replace ItemCallbacks with lambdas (#3948)" | LogicParrot | 2017-09-02 | 1 | -3/+3 |
| | | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5. | ||||
* | Replace ItemCallbacks with lambdas (#3948) | peterbell10 | 2017-09-01 | 1 | -3/+3 |
| | |||||
* | Add cUUID class (#3871) | peterbell10 | 2017-08-25 | 1 | -1/+49 |
| | |||||
* | Remove double delete of PrepareChunk lua callback (#3844) | peterbell10 | 2017-07-12 | 1 | -29/+16 |
| | |||||
* | Added bed entity (#3823) | Lukas Pioch | 2017-07-07 | 1 | -0/+1 |
| | | | | | | | | | | * Added bed entity * Export cBedEntity to lua * Set color of bed through item damage value * Added bed entity to APIDoc * NBT: Added loading and saving * Crafting recipes for the colored beds | ||||
* | cLuaState: Added template to push multiple values in a single call. (#3331) | Mattes D | 2016-08-21 | 1 | -10/+3 |
| | |||||
* | Fix cWorld:QueueTask() Lua's binding | ElNounch | 2016-08-18 | 1 | -2/+1 |
| | | | | | | Manual binding expect three parameters : self, a number, a function And then read self and a function... Removing the extra check for the broken second argument | ||||
* | Fixed cWorld:ChunkStay bindings. (#3319) | Mattes D | 2016-08-14 | 1 | -14/+15 |
| | | | | | | Introduced new cLuaState::cOptionalCallback for representing optional callbacks (nil from Lua side). Introduced new cLuaState::cStackTable class for easy access to Lua table's elements. Fixes #3305. | ||||
* | Converted cLuaState::cCallbackPtr into a UniquePtr. | Mattes D | 2016-06-27 | 1 | -2/+2 |
| | |||||
* | LuaState: Implemented proper locking for cCallback. | Mattes D | 2016-06-27 | 1 | -1/+3 |
| | |||||
* | Changed world tasks to use cLuaState::cCallback. | Mattes D | 2016-06-27 | 1 | -67/+38 |
| | |||||
* | Revert "Lua callback" | Mattes D | 2016-03-21 | 1 | -38/+67 |
| | |||||
* | Changed world tasks to use cLuaState::cCallback. | Mattes D | 2016-03-17 | 1 | -67/+38 |
| | |||||
* | Bulk clearing of whitespace | LogicParrot | 2016-02-05 | 1 | -11/+11 |
| | |||||
* | Fix typo (ammount) | Arnaud Meuret | 2016-01-02 | 1 | -3/+3 |
| | |||||
* | Revised the explosion-related Lua API and docs. | Mattes D | 2015-12-18 | 1 | -34/+128 |
| | | | | Fixes #2746. | ||||
* | Implemented brewing | Lukas Pioch | 2015-11-03 | 1 | -0/+2 |
| | |||||
* | Fixed a race condition between chunk loader and generator. | Mattes D | 2015-10-04 | 1 | -2/+2 |
| | | | | | | When using ChunkWorx to generate multiple chunks, the server would sometimes fail an assert because it would generate a chunk even when it was successfully loaded. This was caused by chunks queued in cWorld's m_SetChunkDataQueue and thus being marked as "InQueue" although they were already loaded. Solved by adding a new parameter to chunk coord callbacks specifying whether the operation succeeded or failed, and using that instead of the chunk presence flag to decide whether to generate or not. | ||||
* | Prepared ScheduleTask for threading refactor | Tiger Wang | 2015-09-25 | 1 | -44/+11 |
| | | | | | * Llama-ified and condensed Schedule/QueueTask - Removed hackery done with piston animations | ||||
* | fixed cast | tycho | 2015-09-24 | 1 | -1/+1 |
| | |||||
* | Add new "ForEach" function: ForEachLoadedChunk. | tycho | 2015-09-24 | 1 | -0/+54 |
| | |||||
* | Some warning fixes | Julian Laubstein | 2015-08-18 | 1 | -6/+16 |
| | |||||
* | Silenced and fixed many warning messages across multiple files. | Samuel Barney | 2015-07-29 | 1 | -4/+4 |
| | |||||
* | Buttons no longer click on when already on. Buttons now play sound when clicking off. | Hax52 | 2015-06-24 | 1 | -1/+1 |
| | |||||
* | Made cLightingThread own its callbacks | tycho | 2015-05-30 | 1 | -2/+1 |
| | |||||
* | Merge branch 'master' into PreventNewWarnings | tycho | 2015-05-23 | 1 | -1/+1 |
|\ | |||||
| * | TryGetHeight returns a bool | Alexander Harkness | 2015-05-23 | 1 | -1/+1 |
| | | | | | | should fix #2099 | ||||
* | | Added LuaState support for all integral types | tycho | 2015-05-19 | 1 | -1/+1 |
|/ | | | | All so added error handling for out of range values | ||||
* | Moved cWorld manual bindings out into a separate file. | Mattes D | 2015-05-13 | 1 | -0/+588 |