summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/BeaconEntity.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fixed Compiler Warningsx12xx12x2022-01-141-2/+2
|
* Add player statistics to API (#5193)nshah252021-05-031-2/+2
| | | | | | * Fixed issue #5166 Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Fix sending incorrect date values on world changeTiger Wang2021-04-121-2/+4
| | | | Yak shave: make more things use cTickTime. Fix a couple of incorrect modulo-on-millisecond-value by making them use WorldTickAge.
* Fix potential destruction crashes (#5095)Tiger Wang2021-01-021-3/+14
| | | | | | | | | | * Fix potential destruction crashes * Fix destructors accessing destroyted objects * Fix cPlayer not destroying windows (Destroyed never called) * Tentatively fixes #4608, fixes #3236, fixes #3262 - Remove cEntity::Destroyed() and replace with cEntity::OnRemoveFromWorld() * Add missing call to OnRemoveFromWorld
* Beacon now checks for players in surrounding square (#4972)12xx122020-10-091-21/+14
| | | | | | | | | | | | | * Beacon now check for players in surrounding square not every player * added proper BoundingBox Co-authored-by: Alexander Harkness <me@bearbin.net> * one symbol to change everything one symbol to break the whole build Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Alexander Harkness <me@bearbin.net>
* Add more statistic tracking (#4837)12xx122020-09-051-0/+2
| | | | | | | | + Added possible 1.8 stats + Added stat tracking for 1.8.2 + Added stat tracking for 1.9 + Added the breed cow achievement Co-authored-by: 12xx12 <12xx12100@gmail.com>
* Add Statistics and Achievements for newer Network standards12xx122020-08-191-1/+1
|
* Using Super.Mattes D2020-04-161-2/+2
|
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-0/+1
| | | | | | | | | The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change) The BlockInfo.h file was removed from Globals.h (main change) The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics) The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor) Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header. That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified. eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values
* Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D2019-09-291-8/+8
|
* Prefer static_cast to reinterpret_cast (#4223)peterbell102018-05-021-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.
* Fixed 2 small warnings (#4055)Bond-0092017-10-021-6/+2
|
* Removed UTF-8 BOM (#4033)Lukas Pioch2017-09-191-1/+1
|
* Replace ItemCallbacks with lambdas (#3993)peterbell102017-09-111-45/+15
|
* Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot2017-09-021-15/+45
| | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
* Replace ItemCallbacks with lambdas (#3948)peterbell102017-09-011-45/+15
|
* Award player an achievement when creating a beacon (#3930)Bond-0092017-08-211-13/+36
|
* cBeaconEntity fix no world crashpeterbell102017-08-181-1/+4
|
* BlockEntities: Support cloning self.Mattes D2017-06-161-11/+27
|
* Fixes problems with windows:Lukas Pioch2017-06-051-1/+1
| | | | | - Changed cPlayer:OpenWindow to accept a ref, tolua adds a nil check - Close open lua window in destructor, to avoid dangling pointers
* Fixed bindings for cBlockArea:Read and Write. (#3568)Mattes D2017-02-051-1/+1
| | | The original bindings accepted nil as the World param, causing a crash.
* Removed ClientHandle.h dependencies from common headers.Mattes D2016-11-181-6/+7
|
* allow use failures to propagate from the entity/block to the playerGargaj2015-12-131-1/+2
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-2/+2
|
* Made -Weverything an error.tycho2015-05-241-3/+3
|
* Moved window code into cpp filesHowaner2015-03-101-1/+1
|
* Merge branch 'master' into InventoryHowaner2015-01-251-1/+1
|\
| * Initial convertion of a_Dt to std::chronoTycho2015-01-111-1/+1
| | | | | | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* | Own classes for all windows.Howaner2014-12-131-0/+1
|/
* BlockEntities: Removed the extra semicolon.Mattes D2014-11-271-9/+10
|
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-9/+15
|
* Merged branch 'master' of git://github.com/sriehl/MCServerMattes D2014-10-211-10/+4
|\
| * fix std:min call, include algorithm and compare same typeSteven Riehl2014-10-121-2/+2
| |
| * refactor an if block to std::minSteven Riehl2014-10-121-4/+1
| |
| * convert old style casts to fix warningsSteven Riehl2014-10-121-8/+4
|/
* Removed WSSCompactTiger Wang2014-09-301-62/+0
|
* Fixed a bug who can used from hacked clients.Howaner2014-08-021-0/+2
|
* Use "default:" in switch.Howaner2014-07-311-3/+6
|
* Renamed "select..." methods to "set..." and better IsValidEffect() function.Howaner2014-07-311-47/+11
|
* Renamed functions and added beacon json saving.Howaner2014-07-311-40/+38
|
* Added window update.Howaner2014-07-301-0/+23
|
* Exported the beacon.Howaner2014-07-301-2/+0
|
* Added beacon.Howaner2014-07-301-19/+290
|
* Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-1/+1
|
* Basic style fixes.madmaxoft2014-07-171-1/+1
|
* Fixed formatting, made function static.madmaxoft2014-04-191-8/+9
|
* Some tweaksSTRWarrior2014-04-121-5/+17
| | | | | GetPyramidLevel returns 0 when no layers were found, 1 for one layer etc. Auto adjust the minY and/or maxY to 0 if the beacon is low.
* Removed debug message.STRWarrior2014-04-121-1/+0
|
* Simplefied GetPyramidLevelSTRWarrior2014-04-121-10/+3
|
* Implemented the skeleton code for the beacon.STRWarrior2014-04-121-0/+111
There is no handling for the GUI. It can now check how big the pyramid is under the beacon.