Skip to content
This repository was archived by the owner on Jan 17, 2026. It is now read-only.

Commit 8817ad8

Browse files
updated README
1 parent ff86e68 commit 8817ad8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,19 +94,19 @@ In order for ViaLoadingBase to find the compression handler in the pipeline, the
9494
## API examples:
9595
ViaLoadingBase also offers a system to compare the target version with other versions:
9696
```java
97-
if (ViaLoadingBase.getClassWrapper().getTargetVersion().isOlderThan(ProtocolVersion.v1_8)) {
97+
if (ViaLoadingBase.getInstance().getTargetVersion().isOlderThan(ProtocolVersion.v1_8)) {
9898
// Code is executed when the target version is < than 1.8
9999
}
100-
if (ViaLoadingBase.getClassWrapper().getTargetVersion().isOlderThanOrEqualTo(ProtocolVersion.v1_16_4)) {
100+
if (ViaLoadingBase.getInstance().getTargetVersion().isOlderThanOrEqualTo(ProtocolVersion.v1_16_4)) {
101101
// Code is executed when the target version is < = than 1.16.4
102102
}
103-
if (ViaLoadingBase.getClassWrapper().getTargetVersion().isNewerThan(ProtocolVersion.v1_12_2)) {
103+
if (ViaLoadingBase.getInstance().getTargetVersion().isNewerThan(ProtocolVersion.v1_12_2)) {
104104
// Code is executed when the target version is > than 1.12.2
105105
}
106-
if (ViaLoadingBase.getClassWrapper().getTargetVersion().isNewerThanOrEqualTo(ProtocolVersion.v1_14_4)) {
106+
if (ViaLoadingBase.getInstance().getTargetVersion().isNewerThanOrEqualTo(ProtocolVersion.v1_14_4)) {
107107
// Code is executed when the target version is > = than 1.14.4
108108
}
109-
if (ViaLoadingBase.getClassWrapper().getTargetVersion().isEqualTo(ProtocolVersion.v1_10)) {
109+
if (ViaLoadingBase.getInstance().getTargetVersion().isEqualTo(ProtocolVersion.v1_10)) {
110110
// Code is executed when the target version is equal to 1.10
111111
}
112112
```

0 commit comments

Comments
 (0)