1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2026-07-03 01:50:48 +00:00
Commit Graph

2962 Commits

Author SHA1 Message Date
Jonathan Coates 715d2e01db Bump CC:T to 1.120.0 v1.20.1-1.120.0 2026-06-15 22:30:32 +01:00
Jonathan Coates 3ecc17ec90 Update dependencies
- Update Loom — required for MC 26.2.
 - Update TeaVM, using the new reflection API.
2026-06-15 20:33:55 +01:00
Jonathan Coates a83385450f Add/bump foojay resolver plugin
We only have this on the 1.21 branch for some reason. Fixes #2457 once
this is merged across.
2026-06-15 18:43:40 +01:00
Jonathan Coates a76220b395 Revert redundant indexOf
I'd considered moving this into the HostRange in
27137c67f7, but eventually decided against
it. Just didn't fully revert the commit!
2026-06-15 18:39:49 +01:00
Jonathan Coates 27137c67f7 Refactor host rule code a little
Now we just use builtin INetAddress predicates or HostRange, rather than
a mix of custom predicates, sets and HostRange.

Also add some other ranges from the reserved list, and link to that list
to make it a bit easier to find stuff in the future.
2026-06-08 13:47:29 +01:00
Jonathan Coates 57ea451d60 Fix a few small typos
Well, mostly my inability to spell.
2026-06-06 11:39:29 +01:00
Jonathan Coates d1bfb2571d Block RFC 8215-style addresses too.
I don't konw if this actually matters, but better safe than sorry.
Everything here confuses me — my understanding of RFC 6052 was that
private IP addresses cannot be used with NAT64, but AWS apparently
allows it? Not sure if I or Amazon is wrong (or both!).
2026-06-05 09:42:41 +01:00
Jonathan Coates 6e28099379 Fix typo in startup docs 2026-06-02 21:44:53 +01:00
Jonathan Coates 8f8e22a06f Some documentation on startup files
Fixes #2233, closes #1069. I don't love this (and the examples are a
massive hack!), but it's better than nothing.
2026-05-28 17:05:14 +01:00
Jonathan Coates 53f7fbd03f Document internal exception protocol 2026-05-28 12:47:40 +01:00
Ruby H 15a5e776cb Support spawning new parallel functions (#2263)
- Split implementation of `parallel.waitFor{All,Any}` up. Their
   implementations are now sufficiently complicated it doesn't make
   sense to share the core.

 - Support spawning new functions from within `parallel.waitForAll`.

 - Flesh out the `parallel.waitForAll` docs a little.
2026-05-26 14:13:07 +00:00
Jonathan Coates 3e7ce15ba6 Link /computercraft queue and computer_command docs 2026-05-18 15:21:04 +01:00
Jonathan Coates 432214f70a Bump CC:T to 1.119.0 v1.20.1-1.119.0 2026-05-16 14:57:17 +01:00
Jonathan Coates 585b6d4d39 Block NAT64 addresses 2026-05-16 14:41:37 +01:00
Jonathan Coates 87916cf342 Prohibit specifying interface in IPv6 addresses 2026-05-16 14:37:21 +01:00
Jonathan Coates 39aab8c384 Add cc.base64 module
Don't love the API here, but really trying to overthink *everything*.

Closes #1960.
2026-05-15 14:30:48 +01:00
Jonathan Coates 2f78973159 Update Cobalt to 0.9.9
Closes #2361
2026-05-14 18:53:50 +01:00
sircfenner b23ac67702 Fix min & sec field defaults in os.time (#2436)
These defaults are wrongly set to 12. They should be 0 for parity with
stock Lua.
2026-05-09 10:55:07 +01:00
Jonathan Coates defb713483 Add commands.getDimension()
Debated "commands.getBlockDimension()" instead, to match
getBlockPosition, but I think this is fine.

Fixes #1866.
2026-05-07 13:36:05 +01:00
Jonathan Coates 663ffed433 Stop using our fork of TeaVM
0.14.0 is in maven central, which has all the patches we need.
2026-05-02 17:32:53 +01:00
Jonathan Coates 39a12893e3 Fix handling of integer indexes in CobaltLuaTable
- Add a new LuaTable.get(int) overload to handle getting an integer key
   instead.
 - Update CobaltLuaMachine for more sensible Java->LuaValue conversion
   for looking up keys.
 - Add some tests for our two LuaTable implementations.
 - Randomly reformat two files because spotless is ???

Fixes #2430
2026-05-02 13:50:58 +01:00
Jonathan Coates 5be300dcb8 Update dependencies 2026-04-29 12:18:44 +01:00
Jonathan Coates abe3d3410f Remove pathWithExtension
This doesn't actually do anything: paths will never have a trailing
slash, so it's just equivalent to `x..".lua"`.
2026-04-29 11:42:56 +01:00
Jonathan Coates 83eddb01d8 Update supported versions 2026-04-28 16:21:01 +01:00
Jonathan Coates 2c58040ae6 Bump CC:T to 1.118.0 v1.20.1-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 d026b4df2f Remove redundant NeoForge plugin repository
This is on the main Gradle repo now
2026-04-21 17:59:45 +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
Jonathan Coates b04aa8543f A couple of small doc tweaks 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
ItsVingtdeux f61b6c8ad4 Fix spelling mistakes in documentation (#2395) 2026-03-09 11:06:07 +00:00
Jonathan Coates 57a6add81a Bump CC:T to 1.117.1 v1.20.1-1.117.1 2026-02-22 13:00:32 +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 f25f391b41 Bump Fabric loader version
Required for Fabric tests to work. Yeah, I should have tested this
before pushing :D.
2026-01-26 23:15:35 +00:00
Jonathan Coates d5e45b65bf Disable "disableRecompilation" in CI
Hadn't realised that a MDG version bump started enabling this in CI.
Ughgr, wish people didn't change behaviour based on environment
variables, makes it harder to test.
2026-01-26 22:54:13 +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 06d1abfeca Mention turtle.craft(0) in the docs
Fix the range of the limit parameter, and mention that it can be used
for checking whether a recipe is valid.
2026-01-04 13:05:59 +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