Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-19 14:30:16 +01:00
Update wild wolf texture field name
Dieser Commit ist enthalten in:
Ursprung
4849ca0745
Commit
0b7fdd4c69
@ -104,7 +104,7 @@ public final class EntityPacketRewriter1_20_5 extends EntityRewriter<Clientbound
|
||||
final PacketWrapper wolfVariantsPacket = wrapper.create(ClientboundConfigurationPackets1_20_5.REGISTRY_DATA);
|
||||
wolfVariantsPacket.write(Type.STRING, "minecraft:wolf_variant");
|
||||
final CompoundTag paleWolf = new CompoundTag();
|
||||
paleWolf.putString("texture", "textures/entity/wolf/wolf.png");
|
||||
paleWolf.putString("wild_texture", "textures/entity/wolf/wolf.png");
|
||||
paleWolf.putString("tame_texture", "textures/entity/wolf/wolf_tame.png");
|
||||
paleWolf.putString("angry_texture", "textures/entity/wolf/wolf_angry.png");
|
||||
paleWolf.put("biomes", new ListTag<>(StringTag.class));
|
||||
|
@ -435,9 +435,19 @@ final class StructuredDataConverter {
|
||||
blockStateTag.putString(entry.getKey(), entry.getValue());
|
||||
}
|
||||
}));
|
||||
register(StructuredDataKey.INTANGIBLE_PROJECTILE, (data, tag) -> {
|
||||
// Nothing
|
||||
register(StructuredDataKey.HIDE_TOOLTIP, (data, tag) -> {
|
||||
// Hide everything we can hide
|
||||
putHideFlag(tag, 0xFF);
|
||||
});
|
||||
|
||||
// Nothing to do for these
|
||||
noop(StructuredDataKey.INTANGIBLE_PROJECTILE);
|
||||
noop(StructuredDataKey.MAX_STACK_SIZE);
|
||||
noop(StructuredDataKey.MAX_DAMAGE);
|
||||
noop(StructuredDataKey.RARITY);
|
||||
noop(StructuredDataKey.FOOD);
|
||||
noop(StructuredDataKey.FIRE_RESISTANT);
|
||||
noop(StructuredDataKey.TOOL);
|
||||
}
|
||||
|
||||
private static String toItemName(final int id) {
|
||||
@ -570,6 +580,11 @@ final class StructuredDataConverter {
|
||||
REWRITERS.put(key, converter);
|
||||
}
|
||||
|
||||
private static <T> void noop(final StructuredDataKey<T> key) {
|
||||
register(key, (data, tag) -> {
|
||||
});
|
||||
}
|
||||
|
||||
@FunctionalInterface
|
||||
interface DataConverter<T> {
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren