Skip to content

Commit

Permalink
Neoforge - 1.21.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgazul committed Oct 23, 2024
1 parent 18b5635 commit 15b8377
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
Progress
------

- [x] Rectify NeoForge([**91303b6970**](https://github.com/neoforged/NeoForge/commit/91303b6970))
- [x] Rectify NeoForge([**dd989e5cff**](https://github.com/neoforged/NeoForge/commit/dd989e5cff))
- [ ] Start patch
* [x] Bukkit([**8ec77750**](https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/commits/8ec77750))
* [ ] CraftBukkit([**d50f50585**](https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/commits/d50f50585))
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ org.gradle.debug=false

java_version=21

minecraft_version=1.21.2
neoform_version=20241022.151510
minecraft_version=1.21.3
neoform_version=20241023.131943
# on snapshot versions, used to prefix the version
neoforge_snapshot_next_stable=21.3
neoforge_snapshot_next_stable=21.4

mergetool_version=2.0.0
accesstransformers_version=10.0.1
Expand Down
8 changes: 8 additions & 0 deletions patches/net/minecraft/client/KeyboardHandler.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@
return;
}
}
@@ -507,6 +_,7 @@
}
}
}
+ net.neoforged.neoforge.client.ClientHooks.onKeyInput(p_90895_, p_90896_, p_90897_, p_90898_);
}
}

@@ -516,10 +_,20 @@
if (screen != null && this.minecraft.getOverlay() == null) {
try {
Expand Down
4 changes: 2 additions & 2 deletions patches/net/minecraft/util/datafix/DataFixers.java.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/net/minecraft/util/datafix/DataFixers.java
+++ b/net/minecraft/util/datafix/DataFixers.java
@@ -1307,10 +_,35 @@
@@ -1308,10 +_,35 @@
Schema schema199 = p_14514_.addSchema(3800, SAME_NAMESPACED);
UnaryOperator<String> unaryoperator2 = createRenamer(Map.of("minecraft:scute", "minecraft:turtle_scute"));
p_14514_.addFixer(ItemRenameFix.create(schema199, "Rename scute item to turtle_scute", unaryoperator2));
Expand Down Expand Up @@ -36,7 +36,7 @@
Schema schema201 = p_14514_.addSchema(3807, V3807::new);
p_14514_.addFixer(new AddNewChoices(schema201, "Added Vault", References.BLOCK_ENTITY));
Schema schema202 = p_14514_.addSchema(3807, 1, SAME_NAMESPACED);
@@ -1333,6 +_,18 @@
@@ -1334,6 +_,18 @@
schema209, "Rename jump strength attribute", createRenamer("minecraft:horse.jump_strength", "minecraft:generic.jump_strength")
)
);
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/mojang/brigadier/tree/CommandNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Predicate;

import net.minecraft.commands.CommandListenerWrapper; // CraftBukkit
import net.minecraft.commands.CommandSourceStack; // CraftBukkit

public abstract class CommandNode<S> implements Comparable<CommandNode<S>> {
private final Map<String, CommandNode<S>> children = new LinkedHashMap<>();
Expand Down Expand Up @@ -73,12 +73,12 @@ public RedirectModifier<S> getRedirectModifier() {

// CraftBukkit start
public synchronized boolean canUse(final S source) {
if (source instanceof CommandListenerWrapper) {
if (source instanceof CommandSourceStack) {
try {
((CommandListenerWrapper) source).currentCommand = this;
((CommandSourceStack) source).currentCommand = this;
return requirement.test(source);
} finally {
((CommandListenerWrapper) source).currentCommand = null;
((CommandSourceStack) source).currentCommand = null;
}
}
// CraftBukkit end
Expand Down

0 comments on commit 15b8377

Please sign in to comment.