Skip to content

Commit 2986058

Browse files
committed
Remove special sign component type
1 parent 35b94f1 commit 2986058

File tree

3 files changed

+1
-54
lines changed

3 files changed

+1
-54
lines changed

common/src/main/java/com/viaversion/viarewind/api/type/RewindTypes.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,13 @@
2828
import com.viaversion.viaversion.api.minecraft.item.Item;
2929
import com.viaversion.viaversion.api.type.Type;
3030
import com.viaversion.viaversion.api.type.Types;
31-
import com.viaversion.viaversion.libs.gson.JsonElement;
3231
import java.util.List;
3332

3433
/**
3534
* Safe to use before protocol loading
3635
*/
3736
public class RewindTypes {
3837

39-
public static final Type<JsonElement> SIGN_COMPONENT = new SignComponentType();
4038
public static final Type<int[]> INT_ARRAY = new IntArrayType(); // Integer array with byte as length indicator
4139

4240
public static final Type<BlockPosition> SHORT_POSITION = new PositionVarYType<>(Types.SHORT, value -> (short) value);

common/src/main/java/com/viaversion/viarewind/api/type/SignComponentType.java

Lines changed: 0 additions & 51 deletions
This file was deleted.

common/src/main/java/com/viaversion/viarewind/protocol/v1_9to1_8/rewriter/PlayerPacketRewriter1_9.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ public void register() {
447447
map(Types.BLOCK_POSITION1_8); // Position
448448
handler(wrapper -> {
449449
for (int i = 0; i < 4; i++) {
450-
final JsonElement json = wrapper.read(RewindTypes.SIGN_COMPONENT);
450+
final JsonElement json = wrapper.read(Types.COMPONENT);
451451
if (!json.isJsonPrimitive()) {
452452
throw new IllegalStateException("Invalid sign text: " + StringUtil.forLogging(json));
453453
}

0 commit comments

Comments
 (0)