Sync component registry ids

Fix deprecation typo
Bump ModLauncher (better stack traces)
Set Automatic-Module-Name
This commit is contained in:
LexManos committed 2024-10-07 17:26:13 -07:00
1 parent 2c6156be25
commit 23b41ce9b3
5 files changed
+9 -4

No files matched your search

@@ -78,7 +78,7 @@ public class ClientChatReceivedEvent extends Event {
* @Deprecated Mojang made ChatType a registry, which isn't always accessible when the System messages are sent.
* So moved to it's own event. {@link SystemMessageReceivedEvent}
*/
@Deprecated(forRemoval = true, since = "1.20.1")
@Deprecated(forRemoval = true, since = "1.21.1")
public boolean isSystem() {
return this.sender.equals(Util.NIL_UUID);
}
@@ -118,7 +118,7 @@ public class ClientChatReceivedEvent extends Event {
* @Deprecated Mojang made ChatType a registry, which isn't always accessible when the System messages are sent.
* So moved to it's own event. {@link SystemMessageReceivedEvent}
*/
@Deprecated(forRemoval = true, since = "1.20.1")
@Deprecated(forRemoval = true, since = "1.21.1")
public static class System extends ClientChatReceivedEvent {
private final boolean overlay;
@@ -175,7 +175,7 @@ public class ForgePacketHandler {
LOGGER.debug(MARKER,"Received registry data packet for {} token {}", msg.name(), msg.token());
if (!this.registriesToReceive.remove(msg.name())) {
LOGGER.error(MARKER, "Received unexpected registry data packet for {}", msg.name());
ctx.getConnection().disconnect(Component.literal("Illegal Registry Data packet received, unexpected regitry: " + msg.name()));
ctx.getConnection().disconnect(Component.literal("Illegal Registry Data packet received, unexpected registry: " + msg.name()));
return;
}
this.registrySnapshots.put(msg.name(), msg.data());
@@ -33,6 +33,7 @@ import net.minecraft.core.MappedRegistry;
import net.minecraft.core.Registry;
import net.minecraft.core.WritableRegistry;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.core.registries.Registries;
import net.minecraft.network.syncher.EntityDataSerializer;
import net.minecraft.resources.ResourceKey;
import net.minecraft.resources.ResourceLocation;
@@ -123,6 +124,7 @@ public class GameData {
makeRegistry(Keys.ATTRIBUTES).onValidate(AttributeCallbacks.INSTANCE).disableSaving().disableSync().create();
makeRegistry(Keys.STAT_TYPES).create();
makeRegistry(Keys.COMMAND_ARGUMENT_TYPES).disableSaving().create();
makeRegistry(Registries.DATA_COMPONENT_TYPE).disableSaving().create();
// Villagers
makeRegistry(Keys.VILLAGER_PROFESSIONS, "none").create();