Commit Graph
2769 Commits
Author SHA1 Message Date
Blodhgarm f564a9c491 Refactor PistionStructureResolver API for better Compatiblity (#1775)
* Implement better handling for custom block interactions within the `PistionStructureResolver`

- Switch to a opt in system for piston interaction methods by moving to a dedicated interface and removing mixin that injects such into every block
- Default to vanilla code for slime blocks and honey blocks behavior.
- Keep `BlockBehaviourInterface` and `BlockBehaviour_customStickyMixin` for compatibility reasons
2023-08-01 13:29:49 +02:00
altrisi 1a73edbf76 Fix chat signatures desyncing when cancelling __on_player_message (#1778) 2023-08-01 12:43:47 +02:00
altrisi a29b84ec0d Remove lightEngineMaxBatchSize rule (#1771) 2023-07-28 21:10:17 +02:00
altrisi fedccb4d61 Remove onPlayerLoggedOut with one arg method
It's never been API and but it has even been deprecated for a while so
nothing should be using it
2023-07-28 21:01:39 +02:00
altrisi fbe37017c5 Refactor spawn reporting (#1519)
Not all that could be done for now
2023-07-28 20:57:48 +02:00
Filip Š efddb904a0 Add option to configure listing fake players on the multiplayer screen (#1756) 2023-07-28 15:27:03 +02:00
manyrandomthings b1cc289a49 Fix registry lists being randomized (#1774) 2023-07-28 14:23:59 +02:00
altrisi a05776a576 Create identifier with separate components
Quite useless change, though may help by interning
2023-07-26 19:59:29 +02:00
altrisi ac588c3e55 Add utility method to easily run code on all SettingsManagers (#1696) 2023-07-26 19:01:03 +02:00
altrisi 36908d6578 Fix sending Carpet tickrate to players without Carpet installed
Fixes #1772
2023-07-26 16:40:22 +02:00
AngelBottomless dd902fd77c Fix piglin brutes spawning in air (#1769) 2023-07-26 15:40:00 +02:00
altrisi 5374d5b5ab Don't check writable in CarpetRulePrinter
Turns out that means the file has to exist, and messes with Carpet Extra's printer
2023-07-25 21:17:05 +02:00
Calvineries 4c134cc88a Create fr_fr.json (#1741) 2023-07-07 12:10:02 +02:00
altrisi db2023f5b9 Move app store validator to CarpetSettings 2023-06-26 18:44:15 +02:00
altrisi 177179b70a Don't use getPlayerOrException in CarpetScriptHost 2023-06-26 18:33:20 +02:00
altrisi a8fedc37e4 Refactor unnecessary Stream->List in /track suggestions 2023-06-26 18:19:43 +02:00
altrisi cce52f3ed1 Include app name in deprecation warnings (#1750) 2023-06-26 17:59:57 +02:00
altrisi 22f31a7b51 Clean up translation file loading 2023-06-22 16:20:43 +02:00
altrisi 7f6f92d0ee Add note about non-api field being used in Carpet Extra 2023-06-19 20:41:27 +02:00
James McCulloch 9ca4e9538f shadow-player-reconnect-fix (#1686)
* if a bot is kill()ed for a duplicate login, handle the disconnect immediately, Fixes #1468
2023-05-24 14:38:48 +02:00
James McCulloch aeb68e9ba0 Fake player portal fix (#1724)
* fake-player-portal-fix:
* Fix the teleport fix, so it doesn't crash when bots go through nether portals (Fixes #1712)

* fake-player-portal-fix:
* Re-implement fix for #1190
* Without causing #1712
* Just move the bot on the chunkmap directly.
2023-05-24 14:24:03 +02:00
gnembon e28f52171f 1.20-pre5 2023-05-23 18:25:09 +02:00
gnembon f15a0eabf7 null level fixes #1703 2023-05-19 08:01:07 +02:00
gnembon e140a5ddb0 send tick info with client level data 2023-05-19 00:45:27 +02:00
gnembon b744956777 fixed server only issues, properly separated client / server logic in common class. 2023-05-18 14:19:26 +02:00
gnembon c6f52b3293 retire static TickSpeed. Use Server and Client synchronization agents. 2023-05-17 21:20:00 +02:00
gnembon 044c66388a 1.20-pre2 2023-05-16 21:16:09 +02:00
gnembon 344b0a5b7c /info command now requires gamemasters permissions to request info from unloaded chunks. 2023-05-16 21:03:59 +02:00
gnembon df786605c2 moar client-server tick speed separation 2023-05-16 10:35:40 +02:00
gnembon e0a3060339 tickspeed server - client separation. 2023-05-14 23:36:55 +02:00
gnembon 755ec1daa8 relight cleanup - think it works now. Little higher level, but that's what's needed. 2023-05-12 22:04:19 +02:00
gnembon fa0200c137 1.20-pre1 2023-05-10 21:12:15 +02:00
altrisiandmanyrandomthings 5759e23794 Fix integers operation results being downcasted to floating point
Co-authored-by: manyrandomthings <42223559+manyrandomthings@users.noreply.github.com>
2023-05-05 00:14:28 +02:00
gnembon cac97b5127 23w18a 2023-05-03 22:09:14 +02:00
gnembon 9cae675ede attempt to make the game no crash when resetting chunks. Lighting gonna get fixed later I presume 2023-05-03 21:50:37 +02:00
altrisiandmanyrandomthings 334f1060a5 Fix wrong zero padding of hex color in #1709
Found by manyrandomthings on #1715

Co-authored-by: manyrandomthings <42223559+manyrandomthings@users.noreply.github.com>
2023-05-01 14:45:12 +02:00
altrisi 773e8722ca Reuse Mojang's floor function in noise samplers 2023-05-01 14:04:49 +02:00
altrisi 68a447daf9 Don't use map color to check for wool color (#1708) 2023-04-27 18:07:23 +02:00
altrisi 1c4bcd682d Use DyeColor's textColor for hopper counters (#1709)
* Use `DyeColor`'s `textColor` for hopper counters

* Remove now unused `Material2DyeName` map in `WoolTool`
2023-04-27 18:06:57 +02:00
gnembon 07033af7dd 23w17a 2023-04-26 22:58:59 +02:00
altrisi 15b120f729 Encapsulate COUNTERS field in HopperCounter 2023-04-22 20:45:29 +02:00
altrisi f1205a4251 Make hoppers use the getter for HopperCounter in their mixin
And very minor cleanup in it
2023-04-22 20:41:12 +02:00
gnembon d68c252180 23w16a 2023-04-20 22:13:32 +02:00
gnembon 51fae27708 single argument print(foo) in player scoped apps will always target the player instance for chat message output. 2023-04-20 20:46:33 +02:00
gnembon c9b93e598a added two argument while loop because duh? 2023-04-20 14:26:40 +02:00
altrisi 384bd37159 Remove unnecessary getPlayerOrException in TickCommand 2023-04-13 20:27:20 +02:00
altrisi 51f213fa15 Cleanup counter command (#1695)
- Import `Commands.literal`
- Use more readable syntax for Brigadier command
- Use `DyeColor` directly instead of toString -> fromString everywhere
  - Also updates `WoolTool` to use the new `HopperCounter` getter that supports it
- Split `resetCounter` in two, one for single and one for all

Also: HopperCounter now uses `.overworld()` and its `//OW` comments are removed
2023-04-08 20:14:26 +02:00
altrisi 8cd60db5e4 Random cleanups to users of Level.OVERWORLD and reduce minecraft_server usage (#1697)
- Use `overworld()` instead of `getLevel(Level.OVERWORLD)` when convenient
- Remove now unnecessary `// OW` comments, from when it had no mappings
- Make spawn chunk size and light batches not depend on global server instance
- Merge all spawn chunk size logic into SpawnChunks instead of methods in the validator
- Remove unneeded `withWorld(OVERWORLD)` with just-created server `CommandSource`s
- Use enhanced for in light batch application
2023-04-08 20:01:30 +02:00
altrisi 17c2d601d2 Remove global server reference from Player_antiCheatDisabledMixin 2023-04-08 19:48:52 +02:00
altrisi 6b9e7aff3e Use List.of in EquipmentInventory
`Arrays.asList` isn't immutable, and `List.of` can be optimized slightly better, is more readable and also removes an import
2023-04-08 16:14:47 +02:00