1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2026-05-17 19:12:07 +00:00
Commit Graph

868 Commits

Author SHA1 Message Date
Jonathan Coates 4edd30c8c4 Transform breaking overlay to match turtle's rotation 2026-04-28 09:46:26 +01:00
Jonathan Coates d7b115c68a Reorgainse recipe serialisers
- Use a fixed instance for colour/uncolour recipes. This prevents
   issues where StreamCodec.unit gets a different instance than what it
   was created with.

   Fixes #2423.

 - Move RecipeSerializer instances to the recipe class, rather than in
   the mod registry. This matches vanilla's structure.
2026-04-28 09:42:35 +01:00
Jonathan Coates b024d4af9a Merge branch 'mc-1.21.x' into mc-26.1 2026-04-26 18:31:12 +01:00
Jonathan Coates 6c701badc9 Merge branch 'mc-1.20.x' into mc-1.21.x 2026-04-26 18:11:59 +01:00
Jonathan Coates 2c58040ae6 Bump CC:T to 1.118.0 2026-04-26 17:39:17 +01:00
Jonathan Coates c526e9a40c Add commands.getEntity
- Add (very basic) details provider for entities.
 - Add commands.getEntity(selector) function, which gets details for all
   matching entities.

Fixes #2383
2026-04-25 18:22:06 +01:00
Jonathan Coates 813d1151c7 Add timeout to rednet.lookup
Fixes #2364
2026-04-25 17:39:07 +01:00
Jonathan Coates a624f88200 Clear terminal in edit program on resize event (#2401) 2026-04-21 18:26:07 +01:00
Jonathan Coates 451edd57ae Fix NF repositories
Apparently the root one was removed at some point, and now one must use
"/releases".
2026-04-21 18:18:47 +01:00
Jonathan Coates 8be5c28484 Update to 26.1
- Replace vanilla-extract with Fabric Loom for common mod. Now that we
   no longer have to worry about remapping, this probably makes more
   sense.

 - Switch turtle upgrades to use ItemStackTemplate. Yay, immutability! I
   think I might change up the upgrade API here a bit, but not a blocker
   for release.

 - Lots of small things. I'm very glad for our game tests — these caught
   a fair few bugs.
2026-04-13 19:06:44 +01:00
ItsVingtdeux db32ddfec5 Add documentation for the setting_changed event (#2405) 2026-04-07 21:35:42 +00:00
Jonathan Coates 2c7da47019 Update dependencies
- Bump Gradle to 9.4.1. This fixes the Kotlin Java 24 warnings.
 - Update Typescript to 6.0
2026-04-07 22:10:14 +01:00
Wojbie 888186bac3 Clear terminal in edit program on resize event 2026-03-22 00:05:25 +01:00
Pink 19b8433653 Fix shebang absolute path handling (#2398)
The shebang/interpreter program is run with the *resolved* path of the
original program. However, this path was not marked with a leading `/`,
meaning interpreters may try to resolve it again.

We now add an explicit leading `/`, to ensure the path is treated as
absolute.
2026-03-19 18:59:51 +00:00
ItsVingtdeux e62dd6df5e Replace references to resource packs with data packs (#2396) 2026-03-19 18:58:28 +00:00
Jonathan Coates f31d0b20e6 Merge branch 'mc-1.21.x' into mc-1.21.y 2026-02-22 13:11:47 +00:00
Jonathan Coates bed861fe7a Merge branch 'mc-1.20.x' into mc-1.21.x
Whoops!
2026-02-22 13:01:42 +00:00
Jonathan Coates 57a6add81a Bump CC:T to 1.117.1 2026-02-22 13:00:32 +00:00
Jonathan Coates a2c8e5ec3c Merge branch 'mc-1.20.x' into mc-1.21.x 2026-02-22 12:56:26 +00:00
Jonathan Coates 46b688613d Bump CC:T to 1.117.1 2026-02-22 12:28:00 +00:00
Mariano Alipi 4bc04f1416 Update TurtleAPI documentation for block breaking (#2380)
Clarified the description of block breaking capabilities for mining turtles.
2026-01-30 19:52:43 +00:00
Jonathan Coates a0571e444c Fix getResponseHeaders @since version
Closes #2378
2026-01-28 23:56:53 +00:00
Meme Tech 7292e3298f Fix discrepancy in type help (#2374) 2026-01-28 10:38:26 +00:00
Jonathan Coates 46f5dc485e Fix more issues caused by Java 25 update
- Bump CC:T Javadoc version, to fix issues with dropping newlines when
   converting to Markdown. I'd originally planned to switch to
   Markdown-style Javadocs, but tooling is stil a bit lacking
   (Intelli's formatting of @params is entirely broken for instance).

 - Force more recent ASM version, to allow Forge to run.
2026-01-28 09:24:52 +00:00
Jonathan Coates 4a6ec54813 Remove "CC may be installed incorrectly" message
It /technically/ may be the case, but in the days of modern mod loaders,
much less likely. Normally this is user error.

Closes #2372.
2026-01-25 09:39:13 +00:00
Jonathan Coates c98b99863d Update some build tooling
Mostly now use JDK 25 to build, to allow us to use markdown docstrings
in the future — this makes the javadoc generator *much* simpler.
2026-01-25 09:39:13 +00:00
UQuark 419441164d Fix #2355 (#2367)
If a fluid uses NBT tags, then when we construct our NBT-less
FluidStack, then the fluid does not match and will not be transferred.
Instead, we search the source tank for a matching FluidStack, and use
that directly.

This is a bit limiting if a tank contains multiple versions of the fluid
with different NBT, but hopefully that's not too common.

Fixes #2355
2026-01-17 20:49:56 +00:00
Jonathan Coates b7d1d9d012 Limit lenght of sound name
Fixes #2366
2026-01-17 20:15:28 +00:00
Jonathan Coates 2105c5c13f Don't materialise the whole split list
This should avoid allocating slightly less memory *in some cases*. I
dare say there's still ways to OOM here. But also, if you want to OOM
the server, you don't need to place a sign to do it!

Closes #2365.
2026-01-17 20:03:41 +00:00
Jonathan Coates 23985ef41f Remove MoreRed integration
Post 1.21.1, MoreRed switched to using ExMachina[^1] for handling
bundled redstone connections, meaning our existing integration code
crashed. While the changes seem really cool, the documentation is
lacking, and I just haven't got the spoons to puzzle through it all. For
now, let's just remove support — PRs very much welcome to add it back!

Closes #2309

[^1]: https://github.com/Commoble/exmachina
2025-12-28 12:43:20 +00:00
Jonathan Coates 0005ee9657 Add tests for consistent getItemDetails behaviour
Closes #2346.
2025-12-28 11:01:57 +00:00
Jonathan Coates b481aa95f2 Merge branch 'mc-1.21.x' into mc-1.21.y
There's definitely some more work to be done here — I need a datafixer
to move pocket upgrades from the bottom to the top — but it otherwise
seems to work.
2025-12-24 19:06:14 +00:00
Jonathan Coates 17867b5d8b Merge branch 'mc-1.20.x' into mc-1.21.x 2025-12-24 09:16:38 +00:00
Jonathan Coates d5e0b0ad2a Bump CC:T to 1.117.0
A day early, but my commitment to the bit is waning.
2025-12-24 09:07:02 +00:00
Jonathan Coates 24fd27d2a3 Add test for potion durations 2025-12-24 08:51:15 +00:00
Jonathan Coates 446b6772a9 Merge branch 'mc-1.20.x' into mc-1.21.x 2025-12-22 09:58:02 +00:00
Jonathan Coates 90e7307fb4 Fix websocket_closed not always being queued on failure
- Reorganise the HTTP test code to make it a bit more extensible. Add
   support for sending messages to connected websockets.
 - Provide a friendlier message for too-large-payload errors.
 - Return failure reason from Websocket.receive

Fixes #2149.
2025-12-19 21:12:37 +00:00
Jonathan Coates 1520bebb6c Simplify event code in LuaTaskContext
We remove support for multiple event listeners, and now just use a
simple event queue again. This makes the code a little simpler, and
removes the risk of race conditions where we do do something, and it
queues the event before we call pullEvent().
2025-12-19 21:12:31 +00:00
Jonathan Coates 419d823d3b Update Redstone in onNeighborChange
We removed onNeighborChange in 676fb5fb53,
on the basis that this was no longer needed for peripheral updates.
However, it *is* required for redstone updates, as MoreRed does not
trigger any block updates for bundled cables.

Fixes #2316.
2025-12-18 15:06:01 +00:00
Jonathan Coates f820cd8b43 Rewrite the GPS setup guide
Mostly trying to avoid the number of asides, to make it a bit more
straightforward. I'm not entirely sure I succeeded.

Fixes #1681, closes #1542.
2025-12-18 13:30:12 +00:00
Jonathan Coates 4b1541154b Add Websocket.getResponseHeaders method
Closes #1387
2025-12-17 23:11:12 +00:00
Jonathan Coates 8a1a545ab1 Add reference for item details
Also change potion display name to include potency, to match
enchantments.
2025-12-17 18:27:45 +00:00
Jonathan Coates 4e9f3501b0 Fix usage of deprecated Netty APIs in tests 2025-12-17 14:04:49 +00:00
Jonathan Coates 7659c608a6 Dynamically pick the port in HTTP tests 2025-12-17 14:03:38 +00:00
Jonathan Coates 309b78eb8a Update JEI to MC 1.21.11 2025-12-17 13:14:14 +00:00
Jonathan Coates a8032d6c65 Remove jzlib
Netty now no longer advertises it supports custom compression windows
when jzlib is not available[^1], so we no longer need this.

[^1]: https://github.com/netty/netty/commit/778ba3e54e0694c4dd6b82773c5ab9f569e9afa0
2025-12-17 13:12:31 +00:00
Jonathan Coates a072b116fa Update to 1.21.11
90% just ResourceLocation → Identifier. Also:
 - StandaloneModel now needs to detect which atlas to use, as the block
   and item atlases are different.

 - MultiLineLabel now always draws in white with a drop shadow, so we go
   back to manual word-wrapping for now.
2025-12-17 11:34:12 +00:00
Jonathan Coates 778805a8d8 Add reference for block details
I do not like the flow of this page, but did not know how better to
structure it.

We really need a way to write things which use the same type syntax as
parameters. I don't like how this (and events!) are formatted so
differently. It'll do for now though.
2025-12-16 23:13:21 +00:00
Jonathan Coates f31d8febbf Handle more of Windows's weird paths
AFAICT, any sequence of ".[ .]*" (except from "") is equivalent to "."
on Windows. Let's handle that in our path sanitisation code.

Fixes #2151.
2025-12-15 23:48:54 +00:00
Jonathan Coates 60bcb9d4d3 Add potion effects to item details
There's some nasty hacks here around potion durations on other items.
This should get a bit cleaner in newer versions of the game, once we
switch to data components.

Fixes #2266.
2025-12-15 22:16:53 +00:00