Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-20 06:50:08 +01:00
Fix typo
Dieser Commit ist enthalten in:
Ursprung
e3312b1c80
Commit
1fe6f72aec
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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> {
|
||||||
|
@ -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);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren