mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-26 03:55:28 +01:00
Formatting
This commit is contained in:
parent
4f8aff9c01
commit
923f3088c0
@ -624,11 +624,11 @@ public class OutgoingTransformer {
|
|||||||
output.writeByte(action);
|
output.writeByte(action);
|
||||||
if (action == 1) { // update spawner
|
if (action == 1) { // update spawner
|
||||||
try {
|
try {
|
||||||
int index = input.readerIndex();
|
int index = input.readerIndex();
|
||||||
DataInputStream stream = new DataInputStream(new ByteBufInputStream(input));
|
DataInputStream stream = new DataInputStream(new ByteBufInputStream(input));
|
||||||
CompoundTag tag = (CompoundTag) NBTIO.readTag(stream);
|
CompoundTag tag = (CompoundTag) NBTIO.readTag(stream);
|
||||||
if(tag != null && tag.contains("EntityId")) {
|
if(tag != null && tag.contains("EntityId")) {
|
||||||
String entity = (String) tag.get("EntityId").getValue();
|
String entity = (String) tag.get("EntityId").getValue();
|
||||||
CompoundTag spawn = new CompoundTag("SpawnData");
|
CompoundTag spawn = new CompoundTag("SpawnData");
|
||||||
spawn.put(new StringTag("id", entity));
|
spawn.put(new StringTag("id", entity));
|
||||||
tag.put(spawn);
|
tag.put(spawn);
|
||||||
|
Loading…
Reference in New Issue
Block a user