summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/HopperEntity.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add a formatting function for Vector3 (#4282)peterbell102018-09-241-6/+6
| | | | | | | | | | * Vector3: Add custom fmt compatible formatter. * cLuaState: Add fmt version of ApiParamError * Use vector formatting in manual bindings * Always log vectors with FLOG
* 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.
* cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050)Bond-0092017-11-201-4/+3
|
* Replace ItemCallbacks with lambdas (#3993)peterbell102017-09-111-12/+9
|
* Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot2017-09-021-9/+12
| | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
* Replace ItemCallbacks with lambdas (#3948)peterbell102017-09-011-12/+9
|
* BlockEntities: Support cloning self.Mattes D2017-06-161-7/+20
|
* 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
* Proper entity destruction in non-ticking chunksLogicParrot2016-02-191-1/+1
|
* allow use failures to propagate from the entity/block to the playerGargaj2015-12-131-1/+2
|
* Unified the doxy-comment format.Mattes D2015-07-311-12/+4
|
* Fixes #2245Tiger Wang2015-06-171-1/+1
| | | | Whoops :/
* Improved hoppersTiger Wang2015-05-111-26/+15
| | | | * Fixes #1994
* 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
|/
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-12/+12
|
* convert old style casts to fix warningsSteven Riehl2014-10-121-35/+31
|
* Removed WSSCompactTiger Wang2014-09-301-11/+0
|
* Removed more unessicary includesTycho2014-09-261-3/+0
|
* Fixed potential null dereferenceTycho2014-08-101-5/+5
| | | | Fixes CID 70466
* Normalized comments.madmaxoft2014-07-171-4/+4
| | | | | This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
* Fixed Issue with Comparing agast the wrong chest, potentially causing crashes.worktycho2014-07-131-7/+7
|
* cHopperEntity: Simplified chest conditions.madmaxoft2014-07-121-10/+4
|
* Suggestions and bug fixTiger Wang2014-07-121-4/+13
| | | | | | * Fixed hoppers pushing/pulling to/from (trapped)chests that do not form a double-chest with the chest type directly connected to said hopper; thank you, @madmaxoft
* Implemented trapped chests & othersTiger Wang2014-07-071-8/+18
| | | | | | | + Added trapped chests * Fixed a bunch of bugs in the redstone simulator concerning wires and repeaters * Other potential bugfixes
* Fixed crashes in HopperEntity.Mattes D2014-06-241-19/+58
| | | | | Some of the coords were off and some functions were assuming too much. Fixes the crash reported in http://forum.mc-server.org/showthread.php?tid=1497
* Did some static analysis, fixed some bugs and optimized a lot of codejfhumann2014-04-181-4/+7
|
* Fixed double to float conversions.madmaxoft2014-03-161-1/+1
|
* Fixed compilation in MSVC (forward class definitions).madmaxoft2014-02-241-0/+1
|
* BlockEntities is warnings freeTycho2014-02-241-0/+2
|
* Removed debug messages againTiger Wang2014-02-151-6/+0
|
* Added proper debug messagesTiger Wang2014-02-131-3/+8
|
* Fancy stuff with constant referencesTiger Wang2014-02-131-2/+2
|
* Changed inheritance a bitTiger Wang2014-02-121-18/+35
| | | | * cBlockEntityWithItems now inherits from cBlockEntityWindowOwner
* Fixed #190Tiger Wang2014-02-111-2/+67
| | | | + Hoppers now collect pickups above them
* Removed obsoleted functionsTiger Wang2014-01-161-2/+2
|
* Fixed a few MSVC warnings.madmaxoft2014-01-061-1/+0
|
* Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT).madmaxoft2013-12-201-2/+2
|
* Moved bindings-related to a Bindings subfolder.madmaxoft2013-12-081-1/+1
| | | | Ref.: #407
* Moved source to srcAlexander Harkness2013-11-241-0/+566