Skip to content

Commit 9cf0f85

Browse files
committed
Merge branch 'mc-1.20.x' into mc-1.21.x
2 parents 2bf0aba + 018ce7c commit 9cf0f85

File tree

12 files changed

+488
-233
lines changed

12 files changed

+488
-233
lines changed

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ body:
1111
What version of Minecraft are you using? If your version is not listed, please try to reproduce on one of the supported versions.
1212
options:
1313
- 1.20.1
14-
- 1.21.x
14+
- 1.21.1
15+
- 1.21.7
1516
validations:
1617
required: true
1718
- type: input

crowdin.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ files:
1212
de: de_de # German
1313
es-ES: es_es # Spanish
1414
fr: fr_fr # French
15+
hu: hu_hu # Hungarian
1516
it: it_it # Italian
1617
ja: ja_jp # Japanese
1718
ko: ko_kr # Korean

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ neogradle.subsystems.conventions.runs.enabled=false
1212

1313
# Mod properties
1414
isUnstable=true
15-
modVersion=1.116.0
15+
modVersion=1.116.1
1616

1717
# Minecraft properties: We want to configure this here so we can read it in settings.gradle
1818
mcVersion=1.21.1

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ nullAway = "0.12.7"
7474
shadow = "8.3.1"
7575
spotless = "7.0.2"
7676
taskTree = "2.1.1"
77-
teavm = "0.11.0-SQUID.1"
77+
teavm = "0.13.0-SQUID.1"
7878
vanillaExtract = "0.2.1"
7979
versionCatalogUpdate = "0.8.1"
8080

package-lock.json

Lines changed: 134 additions & 141 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"devDependencies": {
1515
"@rollup/plugin-node-resolve": "^16.0.0",
16-
"@rollup/plugin-typescript": "^12.0.0 && <12.1.3",
16+
"@rollup/plugin-typescript": "^12.0.0",
1717
"@rollup/plugin-url": "^8.0.1",
1818
"@swc/core": "^1.3.92",
1919
"@types/node": "^24.0.0",

projects/common/src/main/java/dan200/computercraft/shared/command/UserLevel.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ public boolean test(ServerPlayer source) {
5050

5151
public static boolean isOwner(CommandSourceStack source) {
5252
var server = source.getServer();
53+
54+
// While CommandSourceStack.getServer is non-nullable, that's a lie for permission checks. When loading
55+
// .mcfunction files, ServerFunctionLibrary constructs an instance with an empty server. In that case, return
56+
// false — we don't want to treat functions as an owner!
57+
if (server == null) return false;
58+
5359
var player = source.getPlayer();
5460
return server.isDedicatedServer()
5561
? source.getEntity() == null && source.hasPermission(4) && source.getTextName().equals("Server")

projects/common/src/main/resources/assets/computercraft/lang/hu_hu.json

Lines changed: 224 additions & 0 deletions
Large diffs are not rendered by default.

projects/common/src/main/resources/assets/computercraft/lang/zh_cn.json

Lines changed: 64 additions & 64 deletions
Large diffs are not rendered by default.

projects/core/src/main/resources/data/computercraft/lua/rom/help/changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# New features in CC: Tweaked 1.116.1
2+
3+
* Update translations.
4+
5+
One bug fix:
6+
* Fix NPE when mcfunction files contain CC commands.
7+
18
# New features in CC: Tweaked 1.116.0
29

310
* Add `turtle.getEquippedLeft()` and `turtle.getEquippedRight()`.

0 commit comments

Comments
 (0)