Skip to content

Commit 0515ca7

Browse files
committed
Update actions and gradle
1 parent a6d499e commit 0515ca7

File tree

7 files changed

+9
-21
lines changed

7 files changed

+9
-21
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v3.0.0
16+
uses: actions/checkout@v4.2.2
1717
- name: Set up JDK
18-
uses: actions/setup-java@v3.0.0
18+
uses: actions/setup-java@v4.7.0
1919
with:
2020
distribution: adopt
2121
java-version: 17

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v3.0.0
12+
uses: actions/checkout@v4.2.2
1313
- name: Set up JDK
14-
uses: actions/setup-java@v3.0.0
14+
uses: actions/setup-java@v4.7.0
1515
with:
1616
distribution: adopt
1717
java-version: 17

build.gradle

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
plugins {
44
id("java")
55
id("checkstyle")
6-
id("com.github.spotbugs").version("5.0.6")
6+
id("com.github.spotbugs").version("6.1.7")
77
id("org.cadixdev.licenser").version("0.6.1")
8-
id("com.github.johnrengelman.shadow").version("7.1.2")
8+
id("com.gradleup.shadow").version("8.3.6")
99
}
1010

1111
setGroup("net.elytrium")
@@ -31,10 +31,6 @@ repositories {
3131
setName("papermc-repo")
3232
setUrl("https://repo.papermc.io/repository/maven-public/")
3333
}
34-
maven() {
35-
setName("sonatype-snapshots-repo")
36-
setUrl("https://s01.oss.sonatype.org/content/repositories/snapshots/")
37-
}
3834
}
3935

4036
dependencies {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/main/java/net/elytrium/limbofilter/LimboFilter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ public void reload() {
299299
new PacketMapping(0x16, ProtocolVersion.MINECRAFT_1_20_5, false),
300300
new PacketMapping(0x18, ProtocolVersion.MINECRAFT_1_21_2, false),
301301
})
302-
.registerPacket(PacketDirection.CLIENTBOUND, SetEntityMetadata.class, SetEntityMetadata::new, new PacketMapping[]{
302+
.registerPacket(PacketDirection.CLIENTBOUND, SetEntityMetadata.class, null, new PacketMapping[]{
303303
new PacketMapping(0x1C, ProtocolVersion.MINIMUM_VERSION, true),
304304
new PacketMapping(0x39, ProtocolVersion.MINECRAFT_1_9, true),
305305
new PacketMapping(0x3B, ProtocolVersion.MINECRAFT_1_12, true),
@@ -317,7 +317,7 @@ public void reload() {
317317
new PacketMapping(0x5D, ProtocolVersion.MINECRAFT_1_21_2, true),
318318
new PacketMapping(0x5C, ProtocolVersion.MINECRAFT_1_21_5, true),
319319
})
320-
.registerPacket(PacketDirection.CLIENTBOUND, SpawnEntity.class, SpawnEntity::new, new PacketMapping[]{
320+
.registerPacket(PacketDirection.CLIENTBOUND, SpawnEntity.class, null, new PacketMapping[]{
321321
new PacketMapping(0x0E, ProtocolVersion.MINIMUM_VERSION, true),
322322
new PacketMapping(0x00, ProtocolVersion.MINECRAFT_1_9, true),
323323
new PacketMapping(0x01, ProtocolVersion.MINECRAFT_1_19_4, true),

src/main/java/net/elytrium/limbofilter/protocol/packets/SetEntityMetadata.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ public SetEntityMetadata(int entityId, EntityMetadata metadata) {
3939
this(entityId, protocolVersion -> metadata);
4040
}
4141

42-
public SetEntityMetadata() {
43-
throw new IllegalStateException();
44-
}
45-
4642
@Override
4743
public void decode(ByteBuf buf, ProtocolUtils.Direction direction, ProtocolVersion protocolVersion) {
4844
throw new IllegalStateException();

src/main/java/net/elytrium/limbofilter/protocol/packets/SpawnEntity.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ public SpawnEntity(int id, UUID uuid, Function<ProtocolVersion, Integer> type, d
5858
this.velocityZ = velocityZ;
5959
}
6060

61-
public SpawnEntity() {
62-
throw new IllegalStateException();
63-
}
64-
6561
@Override
6662
public void decode(ByteBuf buf, ProtocolUtils.Direction direction, ProtocolVersion protocolVersion) {
6763
throw new IllegalStateException();

0 commit comments

Comments
 (0)