Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2020-09-29 | Doors: check power & toggle correctly | Tiger Wang | 1 | -20/+55 | |
* Fixed upper half ignoring its updates * Fixes #4945 * Fixed doors playing sound effects when they didn't actually toggle | |||||
2020-09-21 | Implement redstone quasi-connectivity (#4889) | Tiger Wang | 5 | -28/+76 | |
2020-09-12 | Use tracing for explosions (#4845) | Tiger Wang | 1 | -2/+1 | |
* TNT: Implement tracing algorithm + Add intensity tracing * Fix iterating over all players to SendExplosion, even those not in range * Implemented TNT entity interaction * Fixed misaligned destruction tracing * Finalise TNT algorithm - Remove BlockArea and just use chunks Using SetBlock makes it so that we can update everything properly, and does appear to be faster. * BlockInfo learns about explosion attentuation * Rename Explodinator parameters * TNT: pull block destruction into common function Co-authored-by: Alexander Harkness <me@bearbin.net> | |||||
2020-08-28 | Minor style fixes | Tiger Wang | 2 | -0/+12 | |
2020-08-25 | Fix doors and trapdoors closing on server restart | Peter Bell | 2 | -2/+6 | |
2020-08-21 | Replace PowerData struct with PowerLevel | Tiger Wang | 25 | -189/+171 | |
* We no longer need to track the powering block with the removal of SolidBlockHandler. PowerLevel is now just an unsigned char | |||||
2020-08-21 | Remove std::make_unique from redstone handler creation | Tiger Wang | 28 | -545/+494 | |
2020-08-08 | Remove the redstone solid block handler | Tiger Wang | 28 | -525/+632 | |
- Remove cSolidBlockHandler * Functionality now integrated into simulator dispatcher * Fix door double open/close issues, arisen due to the top/bottom halves getting different power + Small migration to block states for redstone wire | |||||
2020-08-04 | Do not GetBlock individually in simulators | Tiger Wang | 2 | -50/+38 | |
* Have the simulator manager get the block and pass it on + Add new overload for WakeUp, called when the manager wakes face positions | |||||
2020-08-02 | Always use relative coordinates in AddBlock | Tiger Wang | 2 | -34/+20 | |
+ Pass block, use relatives * Fixes everything immediately converting abs back to rel and getting block, when these data were already available | |||||
2020-08-02 | Add WakeUp/AddBlock distinction | Tiger Wang | 2 | -41/+58 | |
* WakeUp is for singular changes (block breaking for example). The simulator should check blocks around the position and discover other affected blocks as it sees fit * AddBlock is for when you know a whole area is to be updated; chunk loading, or area wakeups for example + Prepares for correct handling of destroyed blocks after removal of SolidBlockHandler in the redstone simulator | |||||
2020-08-02 | Ensure updating relatives calls the correct base case | Tiger Wang | 9 | -14/+15 | |
* Fixed recursive base unintentionally scheduling the origin position for an update because it called the wrong function | |||||
2020-08-01 | Replaced cpp14::make_unique<> with std::make_unique<>. | Mattes D | 1 | -22/+22 | |
2020-07-26 | Remove redundant ErasePowerData call | Tiger Wang | 1 | -7/+5 | |
* Also fix a return that should've been continue | |||||
2020-07-26 | Clang Tidy fix | Tiger Wang | 1 | -11/+11 | |
2020-07-26 | Comparators: use <= in comparison mode | Tiger Wang | 1 | -1/+1 | |
2020-07-26 | Use SimulateChunk in redstone simulator | Tiger Wang | 25 | -815/+758 | |
+ Improved performance, reduces bottleneck in chunkmap lookup * Stop allocating and throwing away lots of small vectors in Update/GetValidSourcePositions return values - Remove unused GetPowerLevel virtual | |||||
2020-07-24 | Redstone: check validity of GetBlock | Tiger Wang | 1 | -1/+5 | |
2020-07-19 | Precompile unordered_map/set | Tiger Wang | 1 | -1/+0 | |
+ Add inclusions to Globals.h * Sort Globals.h - Remove sys/stat.h from Globals.h | |||||
2020-05-16 | Upgrade to C++17 [CMake] (#4717) | Tiger Wang | 1 | -9/+2 | |
* Make our CMake slightly less insane | |||||
2020-05-08 | Add some comments about terracing | Tiger Wang | 1 | -17/+43 | |
2020-05-08 | Update RedstoneWireHandler style | Tiger Wang | 1 | -11/+9 | |
2020-05-08 | Fix SetBlockMeta call in observer handler (#4728) | peterbell10 | 1 | -2/+2 | |
2020-05-03 | Buttons can now be triggered by arrows. (#4670) | DrButcher | 1 | -3/+3 | |
* Buttons can now be triggered by arrows. | |||||
2020-05-03 | Update src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h | mBornand | 1 | -8/+1 | |
Co-authored-by: peterbell10 <peterbell10@live.co.uk> | |||||
2020-05-03 | Update src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h | mBornand | 1 | -8/+1 | |
Co-authored-by: peterbell10 <peterbell10@live.co.uk> | |||||
2020-05-03 | Made some style update and add comments | Marc_Bornand | 1 | -4/+9 | |
2020-05-03 | Fix the connexion to the side of the repeater | Marc_Bornand | 1 | -3/+25 | |
2020-04-21 | Vector3 in Handlers (#4680) | Mattes D | 1 | -1/+13 | |
Refactored all cBlockHandler and cItemHandler descendants to use Vector3. | |||||
2020-04-18 | Re-implement repeater locking | Tiger Wang | 1 | -5/+85 | |
2020-04-17 | Fixing washing away of redstone mechanisms (#4665) | DrButcher | 1 | -0/+1 | |
2020-04-16 | ಠ_ಠ (#4660) | Tiger Wang | 4 | -0/+112 | |
+ Provisional handling for observers | |||||
2020-04-16 | Using Super. | Mattes D | 19 | -40/+78 | |
2020-04-14 | Pressure plate sounds and delay (#4643) | DrButcher | 1 | -7/+141 | |
+ Added sounds on depress and release + Added correct delay times | |||||
2020-04-05 | Filter blocks to add to redstone sim's wake queue (#4621) | peterbell10 | 2 | -6/+62 | |
2020-03-27 | Lock hopper when powered by redstone (#4347) | Bond-009 | 3 | -0/+65 | |
* Lock hopper when powered by redstone * Add to manual bindings * Add hopper API documentation Co-authored-by: Mat <mail@mathias.is> | |||||
2020-03-22 | TNT position fixes (#4519) | Mat | 1 | -2/+1 | |
* TNT position fixes * Don't add offset to explosion spawn coords * Don't make other entities push TNT * Correct initial TNT speed * Fix typo * Improvements * Revert unwanted change * Style fixes * Update format | |||||
2019-08-11 | Fix building with clang 8.0 (#4346) | Bond-009 | 2 | -2/+2 | |
2018-08-29 | Force all headers other than "Globals.h" to be included with relative paths (#4269) | peterbell10 | 14 | -17/+14 | |
Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work. | |||||
2018-07-27 | cWorld: Manually bind deprecated broadcast functions (#4265) | peterbell10 | 1 | -1/+1 | |
Ref: https://github.com/cuberite/cuberite/pull/4264#discussion_r204769193 | |||||
2018-07-26 | CheckBasicStyle: Check number of empty lines between functions (#4267) | peterbell10 | 2 | -2/+0 | |
Add check for number of empty lines between functions and fix the corresponding failures | |||||
2018-07-25 | At long last... Piston animations! | Tiger Wang | 2 | -27/+12 | |
* Fixes #3198 * Fixes #57 (again lol) | |||||
2018-01-03 | Add the fmt library (#4065) | peterbell10 | 1 | -0/+1 | |
* Replaces AppendVPrintf with fmt::sprintf * fmt::ArgList now used as a type safe alternative to varargs. * Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu. * Adds FLOG functions to log with fmt's native formatting style. | |||||
2017-09-25 | cPressurePlateHandler: Fix uninitialised variables. (#4047) | peterbell10 | 1 | -2/+2 | |
2017-09-19 | Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959) | Lane Kolbly | 1 | -1/+1 | |
* Made BroadcastSoundEffect take vector parameters. * Added docs for new vectored methods * Removed old code * Fixed lua warnings * Made old BroadcastSoundEffect not an override. * m_Block to m_BlockPos, used Vector3d constructor where prettier. * a_Block to a_BlockPos * Changed thunderbolt a_Block to a_BlockPos | |||||
2017-09-19 | Removed UTF-8 BOM (#4033) | Lukas Pioch | 1 | -1/+1 | |
2017-09-11 | Replace ItemCallbacks with lambdas (#3993) | peterbell10 | 7 | -116/+36 | |
2017-09-07 | Changed some int parameters to vector parameters (#3937) | Bond-009 | 20 | -87/+87 | |
2017-09-02 | Revert "Replace ItemCallbacks with lambdas (#3948)" | LogicParrot | 7 | -36/+116 | |
This reverts commit 496c337cdfa593654018c171f6a74c28272265b5. | |||||
2017-09-01 | Replace ItemCallbacks with lambdas (#3948) | peterbell10 | 7 | -116/+36 | |
2017-08-17 | Changed int parameters to vector parameters in cCuboid and simulators (#3874) | Lane Kolbly | 1 | -2/+2 | |
2017-08-06 | Removed unneeded includes (#3902) | Lukas Pioch | 2 | -3/+0 | |
2017-08-03 | Remove double includes part 2 (#3890) | peterbell10 | 2 | -2/+0 | |
2017-07-17 | Allocate redstone component handlers upfront | peterbell10 | 22 | -299/+264 | |
2017-05-21 | Clang 5.0 fixes | Lukas Pioch | 1 | -1/+1 | |
- Added override keyword - Removed inherited member variables | |||||
2017-04-29 | Fix fence gates (#3683) | Bond-009 | 1 | -0/+5 | |
This commit fixes an issue where a pressureplate would only open oak fence gates | |||||
2017-02-15 | Updated sounds and effect IDs (#3422) | mathiascode | 2 | -2/+2 | |
2016-12-06 | Fix comparator segfaults | Marvin Kopf | 1 | -1/+8 | |
The handler would get called for any BlockEntity, but not every BlockEntity is a BlockEntityWithItems. Downcasting with static_cast is UB on fail. | |||||
2016-07-31 | Redstone fixes (#3285) | Tiger Wang | 2 | -52/+86 | |
* Comparators and pistons no longer update instantly * Fixes #3168. * Consolidated comparator code * As a result, fixed an issue where GetPowerLevel didn't consider block entities behind it (only GetFrontPowerLevel did) | |||||
2016-07-29 | Revert "Redstone fixes" | Mattes D | 2 | -86/+52 | |
2016-07-29 | Consolidated comparator code | Tiger Wang | 1 | -46/+37 | |
* As a result, fixed an issue where GetPowerLevel didn't consider block entities behind it (only GetFrontPowerLevel did) | |||||
2016-07-29 | Comparators and pistons no longer update instantly | Tiger Wang | 2 | -12/+55 | |
* Fixes #3168. | |||||
2016-07-18 | CMake: Remove needless minimum version specifications. | Mattes D | 1 | -1/+0 | |
2016-07-01 | Revert "Made redstone handlers static" | Lukas Pioch | 2 | -93/+31 | |
2016-06-15 | - Add a activation flag to droppers and dispensers. Previously droppers and dispensers shot items with every block update. | QUSpilPrgm | 2 | -5/+28 | |
- Fixes a range check inside cIncrementalRedstoneSimulator::Simulate | |||||
2016-05-28 | Don't let redstone blocks power adjacent blocks. (#3214) | QUSpilPrgm | 2 | -3/+2 | |
* Don't let redstone blocks power adjacent blocks. This fixes issue #2966 | |||||
2016-05-28 | Made redstone handlers static | Tiger Wang | 2 | -31/+93 | |
* Improvements to performance? Maybe. Can't hurt (he says). | |||||
2016-02-09 | Update RedstoneSimulator to delete unused cached PowerData | Marvin Kopf | 2 | -1/+10 | |
When a new block was placed that has a corresponding RedstoneHandler the PowerData for the position was cached, but never deleted and remained unchanged when the block got destroyed. The RedstoneSimulator now erases all cached PowerData for positions where the block doesn't have a RedstoneHandler (i.e. Air). | |||||
2016-02-05 | Bulk clearing of whitespace | LogicParrot | 2 | -3/+3 | |
2016-01-11 | Fixed issue #2218 | Austin Martin | 1 | -3/+5 | |
2016-01-01 | Renamed leftover strings to Cuberite / Server, as needed. | Mattes D | 1 | -1/+1 | |
Also upgraded the user setting file for MSVC to 2013. | |||||
2015-12-28 | Removed excessive logging in redstone simulator. | Mattes D | 1 | -7/+0 | |
2015-12-24 | Silenced the Redstone Simulator console spam | Safwat Halaby | 17 | -20/+20 | |
2015-12-24 | PF - "Special blocks" handling | Safwat Halaby | 4 | -4/+4 | |
2015-12-19 | Fixes for clang-3.7 | Lukas Pioch | 4 | -6/+6 | |
2015-12-18 | Reorganised the redstone simulator | Tiger Wang | 24 | -0/+2195 | |
-> Many thanks to @worktycho for the idea, and @Haxi52 for the implementation plan! * Uses classes and inheritance now * Speed should be improved |