Commit Graph
100 Commits
Author SHA1 Message Date
altrisi 763c0b6273 Tweak repeated release checker for new versioning scheme 2026-04-02 03:23:24 +02:00
altrisi 848f06cb1c Fix memory leak on fake player connection
Fixes #2169
2026-03-26 02:20:20 +01:00
altrisi 8fb68dab3b Basic elytra flight starting for fake players
Resolves #2043
Replaces, therefore closes #2161
2026-03-24 18:02:03 +01:00
altrisi 0fc39167ba Fix #2174
A hack to fix an issue with a hack
2026-03-24 17:41:43 +01:00
altrisi 0595f0ced7 Move some things around, add chicken to this version, don't cast
Together with the previous commit, closes #2144
2025-12-23 01:12:29 +01:00
altrisi 4e160d235a Fix docs regarding cancellation of player message and command events
Relates to #2137
2025-12-14 22:54:37 +01:00
altrisi 0cc4438abd Fix crash when leaving entity camera in spectator
Fixes #2140
2025-12-14 22:26:55 +01:00
altrisi be61641c3d Missed import change to jSpecify 2025-12-08 19:38:54 +01:00
altrisi 5e8b4ece5b Migrate nullability annotations to jSpecify
Mojang has done that, we don't need 3 different sets of annotations
2025-12-01 13:46:33 +01:00
altrisi 8395fae963 Bump Loom to 1.13
Fix Gradle warning and remove ancient 0.2.1 comment
2025-12-01 13:36:33 +01:00
altrisi cd9d625175 Missed half of the commit 2025-11-30 19:51:18 +01:00
altrisi 0292c61c52 Remove deprecated CarpetExtension.customSettingsManager
All extensions I've found using a custom manager have migrated
2025-11-30 19:45:21 +01:00
altrisi aa276e6056 Correct fake player perspective when they start riding a boat
Fixes #2100
2025-11-29 22:07:47 +01:00
altrisi 2a958920e2 Fix on_player_command firing on the wrong thread 2025-11-29 21:40:47 +01:00
altrisi 47f5bdf318 Fix on_player_swaps_hands firing on stab instead of when it should 2025-11-29 21:27:09 +01:00
altrisi 1e6860fdd9 Fix on_player_rides being called from the wrong thread 2025-11-29 21:00:57 +01:00
altrisi c9b90ab766 Fix scarpet's unmountable attribute 2025-11-29 20:41:56 +01:00
altrisi 469a9356f6 Fix player_takes_damage and player_deals_damage: Use correct source
Fixes #2042, relates to #2121
2025-11-29 19:30:54 +01:00
altrisi e1503bae72 More readable check for freezing fake players
And properly freeze entities with fake players riding them
2025-11-29 03:28:22 +01:00
altrisi dbda1d4482 Freeze fake players during tick freeze
Closes #1691
2025-11-28 23:35:28 +01:00
altrisi b1455b8c41 Add ON_SHELF variant to draw_shape
I don't think item and block displays currently work properly though, or
maybe I'm not using them properly
2025-11-28 20:46:09 +01:00
altrisi 6e32061d8f Fix native memory leak when drawing scarpet labels
Finally fixes #2057
2025-11-28 19:32:31 +01:00
altrisi 2f67690ec3 Don't save player twice when shadowing (#2131)
Saving has side effects, such as removing enderpearls
2025-11-27 20:01:30 +01:00
altrisi 75a5d4ee12 Add a way to display stacktrace of StacklessRuntimeException for debug 2025-11-26 23:44:15 +01:00
altrisi 505280df73 Remove ctrlQCraftingFix as the bug is fixed
In 24w33a (1.21.2) according to MC-135971
2025-11-26 23:28:09 +01:00
altrisi 9f8e6f5168 Don't save config until rule value is checked to be valid
Found by #2111
2025-11-26 23:16:37 +01:00
altrisi 02ede92f76 movableBlockEntities compat with ScalableLux
Fixes #2086
2025-11-26 22:51:57 +01:00
altrisi be9eab18ee Fix wrong color in HopperCounter displays
Fixes #2101
2025-11-26 13:44:31 +01:00
altrisi 9db103aca3 Disable movableBlockEntities support for sculk sensors
Closes #1473
2025-06-21 20:47:39 +02:00
altrisi 209596f6ee Replace ThreadLocal with @Share injected local variable 2025-06-21 20:41:13 +02:00
altrisi 57df043efa Fix remainder calculation when cauldroning shulker boxes
Now handled properly by the game's code
2025-03-15 13:42:36 +01:00
altrisi 8e3857caa7 Update to pre2
pre1 has too much graphic corruption
2025-03-15 13:40:13 +01:00
altrisi 2a2c41ddce Update dependencies in fabric.mod.json 2025-02-05 16:00:30 +01:00
altrisi fc1bc68ed0 Update actions versions (#2032) 2025-02-05 15:57:45 +01:00
altrisi 8f096dadb8 Update Fabric Loader dependency in dev
Fixes dev not launching during snapshots with the new version bound
2024-09-11 14:04:21 +02:00
altrisi 148715245f Set version bound to >1.21.1 2024-09-05 15:07:13 +02:00
altrisi 5943a2a24b Fix client packets not being received by the server (#1905) 2024-04-28 22:56:15 +02:00
altrisi ea3f51e6fb Fix quasiConnectivity rule not loading from settings properly
Fixes #1862
2024-01-19 15:09:45 +01:00
altrisi e1bd03cbef Simplify handling of spawning not online fake players 2023-11-04 14:47:03 +01:00
altrisi 5b8e61c1bd Bump Fabric Loader version 2023-10-31 14:10:49 +01:00
altrisi 2c01a98216 Remove fillLimit rule and its migration code
It has been replaced by the `commandModificationBlockLimit` gamerule
2023-10-22 15:12:28 +02:00
altrisi e3d11f744b Use the game's constants for NBT types 2023-10-13 15:45:26 +02:00
altrisi 4170243570 Also release a 1.20.2 version 2023-10-11 18:41:56 +02:00
altrisi 9039bbaa16 Fix hopper counters command error when guessing item color (#1826)
* Fix hopper counters command crash when guessing item color

* Less List types, slightly less copying and clearer Stream chain

* Reverse result equal logic to not search through registries as much

Gets the item being searched once outside instead of getting the id for
every recipe
2023-10-06 18:37:45 +02:00
altrisi 3493e2ce84 Set versión bound to >1.20.1
Prevents running it (and crashing) on 1.20/1.20.1
2023-08-11 10:10:05 +02:00
altrisi 8416a2f28b Tweaks on top of #1775
Make new interface not have default methods, make `Shadow` body throw
and tiny style changes
2023-08-01 13:39:00 +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
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
altrisi 5516b41a76 Fix root command in ai_tracker 2023-07-26 13:27:53 +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
altrisi 5b1a02997e Fix bitwise shift docs not mentioning mask to amount
Resolves #1675
2023-06-29 15:55:11 +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 01bec472ea Fix syntax error in pt_br language file 2023-06-22 16:12:59 +02:00
altrisi 7f6f92d0ee Add note about non-api field being used in Carpet Extra 2023-06-19 20:41:27 +02:00
altrisi 240c8a8fc5 Fix ci badge 2023-05-07 21:54:56 +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
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
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
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
altrisi a3762584f3 Use for loop for hopper counter info in HUDController 2023-04-08 16:12:38 +02:00
altrisi fdb0936df7 Remove deprecated log4j dependent methods in c.s.SettingsManager
And another one that is normally a bug to use, and a field that is
broken.

Enables `runtimeOnlyLog4j` in loom
2023-04-04 15:57:59 +02:00
altrisi cda7f791b7 Prioritize new Rule annotation when parsing if both are present 2023-04-03 21:58:16 +02:00
altrisi 50c22b6fe2 Log exceptions in notifyPlayersCommandsChanged
I want to remove this try-catch if possible, but don't know why it's
triggered
2023-04-03 21:47:30 +02:00
altrisi 3ae913c3e6 Use enhanced switch in CommandHelper 2023-04-03 21:42:44 +02:00
altrisi d85c23125f Add explicit deprecation SuppressWarnings for Gradle 2023-04-03 19:40:33 +02:00
altrisi 56e25a780c Missed call in 5fcfc7a 2023-04-03 19:19:31 +02:00
altrisi 83e88856ab Rename fungus growth enum given the rule is no longer about a fix 2023-04-03 19:15:08 +02:00
altrisi 431b0e68de Cleanup to the /player command (#1690)
* Small cleanup to `/player` command

There should be no changes to users

* Use extracted `source` variable

* Inline another single-use small function

* Inline another trivial helper

* Import inner classes of the ActionPack

* Rename `literalargumentbuilder` variable

* Compact unnecessary three lines into one

* Inline `source.getServer` and pass `Vec3` to `createFake`

This gets outside of "just" the command, but it's fine

* Unpick name length constant

* Pass `Vec3` directly to `BlockPos.containing`
2023-04-03 18:41:09 +02:00
altrisi 5fcfc7aa8d Tiny drive-by cleanup of action pack's onUpdate 2023-04-02 21:54:44 +02:00
altrisi 73260a220c Use EnumMap in the action pack 2023-04-02 21:23:42 +02:00
altrisi 2d0a8e11da Keep the other improvements from #1689 2023-04-02 13:26:46 +02:00
altrisi b055b05263 Revert "Fix /player look and turn commands reversing yaw and pitch (#1689)"
This reverts commit 591153458c.
2023-04-02 12:51:22 +02:00
altrisi 591153458c Fix /player look and turn commands reversing yaw and pitch (#1689)
* Fix `/player` `look` and `turn` commands reversing yaw and pitch

* Translate a comment to mojmap and update it a bit
2023-04-01 12:34:54 +02:00
altrisi 23b7aa0945 Require Loader 0.14.18 2023-03-23 18:09:55 +01:00
altrisi 4e94d1bc15 Enforce 1.19.4 in dependency resolution 2023-03-20 18:51:20 +01:00
altrisi d2d7d6f421 Carpet 1.4.101 2023-03-19 19:37:03 +01:00
altrisi 1ad927da9d Up priority in MinecraftServer_tickspeedMixin 2023-03-19 19:36:37 +01:00
altrisi f98c2409be Simplify enum options creation
Slightly optimizes it
2023-03-16 17:36:44 +01:00
altrisi d9ec575205 Carpet 1.4.100 2023-03-14 17:42:25 +01:00
altrisi 9c82ca0ed4 Bump versions to 1.19.4 2023-03-14 17:32:33 +01:00
altrisi 0869cbb81c Move rule change event into a rule observer and outside the Java api
* Move rule change event into a rule observer, without exposing it

* Fix comment

* Fix formatting changes added by my IDE

Still trying to configure it to force correctly the new style

Also remove some finals
2023-03-08 21:31:34 +01:00
altrisi 06bdbdaed2 Add arithmetic shift, use logic shift in current right shift (#1670)
* Add arithmetic shift, use logic shift in current

* State that the MSBs will be cleared to zero in logic right shift
2023-03-08 21:26:27 +01:00
altrisi cc24f79d47 Allow scarpet function name to be different to annotated method name 2023-03-08 20:53:35 +01:00