0
0
mirror of https://github.com/pmmp/PocketMine-MP.git synced 2025-02-24 00:25:15 +00:00

Commit Graph

  • 84ec8b7abe Removed dead error patterns I do think these are PHPStan bugs, since the trait should inherit the parent class's doc comment But for the sake of catching more bugs, these doc comments have been manually added anyway. Dylan K. Taylor 2025-01-06 23:02:18 +00:00
  • 357dfb5c7e Fixed build Dylan K. Taylor 2025-01-06 23:01:14 +00:00
  • 0358b7dce4 utils: avoid weak comparisons Dylan K. Taylor 2025-01-06 22:53:35 +00:00
  • 97c5902ae2 Internet: make postURL() error reporting behaviour more predictable err is now always set to null when doing a new operation. Dylan K. Taylor 2025-01-06 22:52:05 +00:00
  • 9a130bce32 Config: remove bad assumptions about string root keys these could just as easily be integers and the code should still work. Dylan K. Taylor 2025-01-06 22:50:25 +00:00
  • 20849d6268 Fixed potential crashes in type ID tests if the constants had any non-stringable values, these would blow up. this would still be fine in the sense that the tests would fail, but better that they fail gracefully if possible. Dylan K. Taylor 2025-01-06 22:48:22 +00:00
  • b6bd3ef30c Improve PHPDocs in world package Dylan K. Taylor 2025-01-06 22:46:16 +00:00
  • c5a1c15389 TimingsCommand: beware crash on invalid timings server response Dylan K. Taylor 2025-01-06 22:44:04 +00:00
  • e30ae487dc SimpleCommandMap: ensure we always pass a list to Command::setAliases() some offsets may have been removed if the alias failed to be registered. Dylan K. Taylor 2025-01-06 22:43:34 +00:00
  • 59f6c85105 Command: mark execute $args as being list<string> Dylan K. Taylor 2025-01-06 22:42:57 +00:00
  • 90f0b85d2e Eliminate weak comparisons in entity package Weak comparisons were used in cases when we were worried about comparing int and float. Dylan K. Taylor 2025-01-06 22:41:00 +00:00
  • 8ee70b209e MemoryDump: fix PHPDoc types Dylan K. Taylor 2025-01-06 22:38:54 +00:00
  • 5c905d9a95 BlockBreakInfo: use strict comparison weak compare isn't needed here since this can be float/float Dylan K. Taylor 2025-01-06 22:38:32 +00:00
  • 8b23231537 Fixup PHPDoc for blocks Dylan K. Taylor 2025-01-06 22:37:11 +00:00
  • 3f7f11b812 Merge 'minor-next' into 'major-next' pmmp-admin-bot[bot] 2025-01-05 01:37:23 +00:00
  • 8e039f2711 Merge 'stable' into 'minor-next' pmmp-admin-bot[bot] 2025-01-05 01:37:22 +00:00
  • 4a4572131f Bump shivammathur/setup-php in the github-actions group (#6591) dependabot[bot] 2025-01-04 22:26:14 +00:00
  • 984e995659 Merge 'minor-next' into 'major-next' pmmp-admin-bot[bot] 2025-01-04 01:22:34 +00:00
  • 3da0b82b86 Merge branch 'stable' into minor-next Dylan K. Taylor 2025-01-03 19:26:45 +00:00
  • da62eb9f33 ... Dylan K. Taylor 2025-01-03 19:26:24 +00:00
  • 46604b26f2 Merge 'minor-next' into 'major-next' pmmp-admin-bot[bot] 2024-12-27 01:23:48 +00:00
  • 09c434983b Merge 'stable' into 'minor-next' pmmp-admin-bot[bot] 2024-12-27 01:23:47 +00:00
  • fbaa125d0c Bump build/php from 9728fa5 to 56cec11 (#6588) dependabot[bot] 2024-12-26 12:36:17 +00:00
  • 6b2fb9c4f8 Merge 'minor-next' into 'major-next' pmmp-admin-bot[bot] 2024-12-26 01:23:26 +00:00
  • 6ad9dde43d Merge 'stable' into 'minor-next' pmmp-admin-bot[bot] 2024-12-26 01:23:25 +00:00
  • d634a5fa3d Bump build/php from b1eaaa4 to 9728fa5 (#6587) dependabot[bot] 2024-12-25 13:06:46 +00:00
  • 80b761627a Merge 'minor-next' into 'major-next' pmmp-admin-bot[bot] 2024-12-25 01:23:10 +00:00
  • 8cea4c13c4 Merge 'stable' into 'minor-next' pmmp-admin-bot[bot] 2024-12-25 01:23:09 +00:00
  • dc2e82df7f crash.yml: add field ID for crash archive "report github issue" button Dylan T. 2024-12-24 16:37:18 +00:00
  • debf8d18fc Upgrade issue templates Dylan K. Taylor 2024-12-24 16:27:40 +00:00
  • 81e3730b99 Fixed crashes containing PHP internal stack frames being flagged as plugin-caused Dylan K. Taylor 2024-12-24 14:20:16 +00:00
  • 882d8c4ab9 Merge 'minor-next' into 'major-next' pmmp-admin-bot[bot] 2024-12-24 01:24:08 +00:00
  • 8a5eb71432 ChunkCache: track strings in cache directly instead of CompressBatchPromise this reduces memory footprint slightly, but more importantly reduces GC workload. Since it also reduces the work done on cache hit, it might *slightly* improve performance, but any improvement is likely to be minimal. Dylan K. Taylor 2024-12-23 21:04:33 +00:00
  • fdae689f87 Fixed a series of mistakes that prevented converting from regionized leveldb to a different format experimental/regionized-leveldb Dylan K. Taylor 2024-12-23 19:11:59 +00:00
  • 1c35987ead Merge 'minor-next' into 'major-next' pmmp-admin-bot[bot] 2024-12-22 01:37:17 +00:00
  • 8027c271fa Remove regionized leveldb 32x32 and 64x64 these produce such small file sizes on average that the DB logs would probably take up a significant fraction of the world's footprint. My gut instinct is that 128 will probably be the sweet spot, as on average it should sit well below the threshold for level 3 compactions, and most worlds would likely fit into a single DB. 256 is probably not worthwhile, but might be worth trying. Dylan K. Taylor 2024-12-21 18:47:44 +00:00
  • 6abc40bb83 ... Dylan K. Taylor 2024-12-21 18:13:59 +00:00
  • 07cd2e5542 Apparently intdiv() is fucking stupid Dylan K. Taylor 2024-12-21 18:10:25 +00:00
  • 5b435e783c stfu Dylan K. Taylor 2024-12-21 18:03:41 +00:00
  • 1224055f66 Introduced a custom LevelDB impl with regions and better key format Dylan K. Taylor 2024-12-21 17:56:09 +00:00
  • 306623e890 FormatConverter: do periodic GC this reduces the risk of OOM during conversion of large worlds we probably ought to limit the size of region caches for regionized worlds, but that's a problem for another time. Dylan K. Taylor 2024-12-21 17:47:16 +00:00
  • ada3acdba4 FormatConverter: ensure we don't get stalled due to stdout buffer flood this can happen due to very noisy outputs during conversion, e.g. if there were many unknown blocks. Dylan K. Taylor 2024-12-21 17:43:59 +00:00
  • 6a1d80e021 tools/convert-world: fixed some UI issues Dylan K. Taylor 2024-12-21 17:41:01 +00:00
  • 88ae00fc4d Merge 'minor-next' into 'major-next' pmmp-admin-bot[bot] 2024-12-21 01:22:55 +00:00
  • 1ff0988e75 Merge 'stable' into 'minor-next' pmmp-admin-bot[bot] 2024-12-21 01:22:54 +00:00
  • 506cfe0362 Bump build/php from 5016e0a to b1eaaa4 (#6579) dependabot[bot] 2024-12-20 10:39:39 +00:00
  • 47a1aa6470 Merge 'minor-next' into 'major-next' pmmp-admin-bot[bot] 2024-12-20 01:24:32 +00:00
  • fea17fa4a9 RakLibServer: disable GC GC is not required for RakLib as it doesn't generate any unmanaged cycles. Cycles in general do exist (e.g. Server <-> ServerSession), but these are explicitly cleaned up, so GC wouldn't have any useful work to do. Dylan K. Taylor 2024-12-19 20:33:40 +00:00
  • 3e69ee87e4 Remove deprecated stuff except Permission subscriptions; turns out we still need those perhaps they should be marked @internal Dylan K. Taylor 2024-12-19 00:14:18 +00:00
  • a2a2ec9d8b Merge 'minor-next' into 'major-next' pmmp-admin-bot[bot] 2024-12-17 01:39:12 +00:00
  • aee358d329 This timings handler management is a crap design Dylan T. 2024-12-16 03:11:07 +00:00
  • 3a0f15ef0d Merge 'minor-next' into 'major-next' pmmp-admin-bot[bot] 2024-12-16 01:42:31 +00:00
  • 80899ea72c Make sure timings are counted under the proper parents Dylan K. Taylor 2024-12-15 21:34:16 +00:00
  • 42f90e94ff AsyncWorker now manually triggers GC at the end of each task run, similar to the main thread this avoids costly GC runs during hot code. Dylan K. Taylor 2024-12-15 21:25:32 +00:00
  • 8f536e6f21 always the CS Dylan K. Taylor 2024-12-15 20:46:10 +00:00
  • 45482e868d Fixed AsyncWorker GC not getting re-enabled after memory dump async workers still use automatic GC for now. We should probably switch to manual GC at some point, but it's not a priority right now. Dylan K. Taylor 2024-12-15 20:45:51 +00:00
  • 742aa46b88 Separate memory dumping utilities from MemoryManager Dylan K. Taylor 2024-12-15 20:44:00 +00:00
  • cf1b360a62 World: Prevent block cache from getting too big This has been a long-standing issue since at least 2016, and probably longer. Heavy use of getBlock(At) could cause the cache to blow up and use all available memory. Dylan K. Taylor 2024-12-15 18:40:32 +00:00
  • 0aa6cde259 Remove stupid MemoryManager settings No one in their right mind is going to change the defaults for these anyway. Dylan K. Taylor 2024-12-15 16:41:54 +00:00
  • 8f8fe948c1 MemoryManager: Control when cycle garbage collection is run (#6554) Dylan T. 2024-12-15 16:26:39 +00:00
  • 7a2427ace2 Merge branch 'minor-next' of github.com:pmmp/PocketMine-MP into major-next Dylan K. Taylor 2024-12-14 02:40:03 +00:00
  • b10caf7437 Remove tool tier of some blocks to match vanilla (#6573) ipad54 2024-12-14 00:54:48 +03:00
  • de66d84d29 Implement new 1.20 and 1.21 records (#6572) ipad54 2024-12-13 21:10:34 +03:00
  • f82c8dd3d3 Merge 'minor-next' into 'major-next' pmmp-admin-bot[bot] 2024-12-13 01:40:43 +00:00
  • 636f562bcf Merge 'stable' into 'minor-next' pmmp-admin-bot[bot] 2024-12-13 01:40:42 +00:00
  • 42094e6768 Implement resin blocks & items (#6571) ipad54 2024-12-12 23:21:41 +03:00
  • b341078765 Implement new pale oak blocks (#6570) ipad54 2024-12-12 17:53:52 +03:00
  • f7687af337 Fixed draft release being created on release publish Dylan T. 2024-12-12 13:11:48 +00:00
  • 851bbd7384 Merge 'minor-next' into 'major-next' pmmp-admin-bot[bot] 2024-12-11 01:40:03 +00:00
  • ba93665fe7 TextFormat: reduce hella duplicated code in toHTML() Dylan K. Taylor 2024-12-10 14:11:11 +00:00
  • 6817215683 TextFormat: Added new material colours for armor trims (#5838) Maxence 2024-12-10 14:40:03 +01:00
  • 1ee52b69b0 Merge 'minor-next' into 'major-next' pmmp-admin-bot[bot] 2024-12-10 01:41:10 +00:00
  • 67b9d6222d 5.23.3 is next pmmp-admin-bot[bot] 2024-12-09 16:52:50 +00:00
  • 6f197bc1bb 5.23.2 (#6569) 5.23.2 Dylan T. 2024-12-09 16:51:41 +00:00
  • bba525da02 Remove dead PHPStan ignored errors Dylan K. Taylor 2024-12-09 16:44:25 +00:00
  • ad6d34f1a6 Remove legacy make-release script we no longer use this release workflow, all releases should now be done via pull request Dylan K. Taylor 2024-12-09 16:44:07 +00:00
  • a8eaa43bc8 Recombine release workflows Dylan K. Taylor 2024-12-09 16:36:26 +00:00
  • fe7c282052 Bump pocketmine/locale-data in the production-patch-updates group (#6568) dependabot[bot] 2024-12-09 12:03:09 +00:00
  • 851f7a9d80 Merge 'minor-next' into 'major-next' pmmp-admin-bot[bot] 2024-12-09 01:42:26 +00:00
  • 45917d495c Fixed CrashDump incorrectly detecting phar core crashes as plugin crashes (#6564) Dylan T. 2024-12-08 16:52:33 +00:00
  • 0fe786af4d Rename CombinedInventory -> CombinedInventoryProxy Dylan K. Taylor 2024-12-08 16:28:00 +00:00
  • 9949e3815f CombinedInventory now propagates updates if its backing inventories were directly modified this was always lacking with DoubleChestInventory and is a major factor in it being basically useless for custom use cases. Dylan K. Taylor 2024-12-08 16:15:43 +00:00
  • 3ee78e20a5 BlockInventoryTrait: include a Block ref instead of Position Dylan K. Taylor 2024-12-07 19:28:10 +00:00
  • 9e6e5082cd stfu Dylan K. Taylor 2024-12-07 18:55:09 +00:00
  • 699a85a5d6 Replace DoubleChestInventory with a more generic CombinedInventory this could be used for a bunch of different things aside from double chests since the DoubleChestInventory no longer references anything specific about chests, I figured it was time to generalize this. Dylan K. Taylor 2024-12-07 18:51:25 +00:00
  • 4906f5bec2 ... Dylan K. Taylor 2024-12-07 16:08:54 +00:00
  • ef3d16597a Revert "Chest block now has responsibility for configuring double chest inventories" Dylan K. Taylor 2024-12-07 16:04:50 +00:00
  • b5a69c829d smh Dylan K. Taylor 2024-12-07 14:47:10 +00:00
  • b76db739fd Campfire block's inventory is now null if it hasn't been set in the world having this created by the block was unreliable anyway. If items were set into the block's created inventory before setting the block in the world, the campfire contents would get overridden when the block was next run through readStateFromWorld() anyway. Dylan K. Taylor 2024-12-07 14:45:57 +00:00
  • 15bb0c705c Remove CampfireInventory Dylan K. Taylor 2024-12-07 14:19:58 +00:00
  • 76528b20c1 Remove dodgy code Dylan K. Taylor 2024-12-07 14:10:55 +00:00
  • 4850bd5538 Allow blocks to respond to the contents of their containers being updated turns out relying on scheduled updates for this was a bad idea, since it causes a lot of unnecessary code to run every tick, as well as being problematic for campfire, which doesn't have any blockstates to compare against. Dylan K. Taylor 2024-12-06 17:46:11 +00:00
  • 40574be333 Shift inventory management responsibility to World this removes a bunch of problematic Position usages from Tile, as well as getting rid of a bunch of code duplication. Dylan K. Taylor 2024-12-06 16:14:41 +00:00
  • ce4d3aef9e Rename Container(Trait) -> ContainerTile(Trait) this allows introducing block variations of these without name conflicts Dylan K. Taylor 2024-12-06 15:34:32 +00:00
  • 897816c6bb this has no business being public block-position Dylan K. Taylor 2024-12-06 14:55:07 +00:00
  • f93333227c Merge branch 'major-next' into block-position Dylan K. Taylor 2024-12-06 14:46:58 +00:00
  • 6578d65cd8 Merge branch 'major-next' into inventory-rework Dylan T. 2024-12-06 12:58:03 +00:00
  • 6d2329128a Merge 'minor-next' into 'major-next' pmmp-admin-bot[bot] 2024-12-06 01:38:37 +00:00
  • 1481977f35 Create pr-stale.yml Dylan T. 2024-12-05 20:47:46 +00:00
  • 8efdf501ad 5.23.2 is next pmmp-admin-bot[bot] 2024-12-05 20:05:36 +00:00