mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-10-03 17:07:37 +02:00
Fix dimension registry data
This commit is contained in:
parent
8a00e260f6
commit
9a59c40ce1
@ -48,7 +48,7 @@ public class EntityPackets {
|
|||||||
wrapper.write(Type.STRING, dimensionName); // dimension
|
wrapper.write(Type.STRING, dimensionName); // dimension
|
||||||
};
|
};
|
||||||
private static final CompoundTag DIMENSIONS_TAG = new CompoundTag("");
|
private static final CompoundTag DIMENSIONS_TAG = new CompoundTag("");
|
||||||
private static final String[] STRINGS = new String[0];
|
private static final String[] WORLD_NAMES = {"minecraft:overworld", "minecraft:the_nether", "minecraft:the_end"};
|
||||||
|
|
||||||
static {
|
static {
|
||||||
ListTag list = new ListTag("dimension", CompoundTag.class);
|
ListTag list = new ListTag("dimension", CompoundTag.class);
|
||||||
@ -89,10 +89,10 @@ public class EntityPackets {
|
|||||||
|
|
||||||
private static CompoundTag createEndEntry() {
|
private static CompoundTag createEndEntry() {
|
||||||
CompoundTag tag = new CompoundTag("");
|
CompoundTag tag = new CompoundTag("");
|
||||||
tag.put(new StringTag("key", "minecraft:the_nether"));
|
tag.put(new StringTag("key", "minecraft:the_end"));
|
||||||
CompoundTag elementTag = new CompoundTag("element");
|
CompoundTag elementTag = new CompoundTag("element");
|
||||||
elementTag.put(new ByteTag("natural", (byte) 0));
|
elementTag.put(new ByteTag("natural", (byte) 0));
|
||||||
elementTag.put(new LongTag("fixed_time", 60000));
|
elementTag.put(new LongTag("fixed_time", 6000));
|
||||||
elementTag.put(new FloatTag("ambient_light", 0));
|
elementTag.put(new FloatTag("ambient_light", 0));
|
||||||
elementTag.put(new ByteTag("shrunk", (byte) 0));
|
elementTag.put(new ByteTag("shrunk", (byte) 0));
|
||||||
elementTag.put(new ByteTag("ultrawarm", (byte) 0));
|
elementTag.put(new ByteTag("ultrawarm", (byte) 0));
|
||||||
@ -175,7 +175,7 @@ public class EntityPackets {
|
|||||||
map(Type.NOTHING, new ValueTransformer<Void, String[]>(Type.STRING_ARRAY) { // World list - only used for command completion
|
map(Type.NOTHING, new ValueTransformer<Void, String[]>(Type.STRING_ARRAY) { // World list - only used for command completion
|
||||||
@Override
|
@Override
|
||||||
public String[] transform(PacketWrapper wrapper, Void input) throws Exception {
|
public String[] transform(PacketWrapper wrapper, Void input) throws Exception {
|
||||||
return STRINGS;
|
return WORLD_NAMES;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
map(Type.NOTHING, new ValueTransformer<Void, CompoundTag>(Type.NBT) { // whatever this is
|
map(Type.NOTHING, new ValueTransformer<Void, CompoundTag>(Type.NBT) { // whatever this is
|
||||||
|
Loading…
Reference in New Issue
Block a user