mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-12-23 00:47:39 +01:00
Fix typo
This commit is contained in:
parent
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("message_id", "inFire");
|
||||
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 {
|
||||
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;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
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 RegistryEntry[] newEntries = Arrays.copyOf(entries, length + toAdd.length);
|
||||
System.arraycopy(toAdd, 0, newEntries, length, toAdd.length);
|
||||
|
Loading…
Reference in New Issue
Block a user