3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-20 06:50:08 +01:00
Dieser Commit ist enthalten in:
FlorianMichael 2024-05-05 19:34:54 +02:00 committet von Nassim Jahnke
Ursprung e3312b1c80
Commit 1fe6f72aec
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: EF6771C01F6EF02F
3 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -56,7 +56,7 @@ public final class EntityPacketRewriter1_21 extends EntityRewriter<ClientboundPa
campfireDamageType.putString("scaling", "when_caused_by_living_non_player"); campfireDamageType.putString("scaling", "when_caused_by_living_non_player");
campfireDamageType.putString("message_id", "inFire"); campfireDamageType.putString("message_id", "inFire");
campfireDamageType.putFloat("exhaustion", 0.1F); campfireDamageType.putFloat("exhaustion", 0.1F);
wrapper.set(Type.REGISTRY_ENTRY_ARRAY, 0, addRegistryEnties(entries, new RegistryEntry("minecraft:campfire", campfireDamageType))); wrapper.set(Type.REGISTRY_ENTRY_ARRAY, 0, addRegistryEntries(entries, new RegistryEntry("minecraft:campfire", campfireDamageType)));
} else { } else {
handleRegistryData1_20_5(wrapper.user(), type, entries); handleRegistryData1_20_5(wrapper.user(), type, entries);
} }

Datei anzeigen

@ -39,7 +39,7 @@ import com.viaversion.viaversion.protocols.base.ClientboundLoginPackets;
import org.checkerframework.checker.nullness.qual.Nullable; import org.checkerframework.checker.nullness.qual.Nullable;
/** /**
* Handles json chat components, containing methods to override certain parts of the handling. * Handles json and tag components, containing methods to override certain parts of the handling.
* Also contains methods to register a few of the packets using components. * Also contains methods to register a few of the packets using components.
*/ */
public class ComponentRewriter<C extends ClientboundPacketType> { public class ComponentRewriter<C extends ClientboundPacketType> {

Datei anzeigen

@ -580,7 +580,7 @@ public abstract class EntityRewriter<C extends ClientboundPacketType, T extends
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
public RegistryEntry[] addRegistryEnties(final RegistryEntry[] entries, final RegistryEntry... toAdd) { public RegistryEntry[] addRegistryEntries(final RegistryEntry[] entries, final RegistryEntry... toAdd) {
final int length = entries.length; final int length = entries.length;
final RegistryEntry[] newEntries = Arrays.copyOf(entries, length + toAdd.length); final RegistryEntry[] newEntries = Arrays.copyOf(entries, length + toAdd.length);
System.arraycopy(toAdd, 0, newEntries, length, toAdd.length); System.arraycopy(toAdd, 0, newEntries, length, toAdd.length);