Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-11-20 06:50:10 +01:00
Fix block entity ids
Dieser Commit ist enthalten in:
Ursprung
deb11bf1a9
Commit
1ef1a861ca
@ -9,8 +9,12 @@ public final class BlockEntityIds {
|
|||||||
static {
|
static {
|
||||||
final int[] ids = com.viaversion.viaversion.protocols.protocol1_18to1_17_1.BlockEntityIds.getIds();
|
final int[] ids = com.viaversion.viaversion.protocols.protocol1_18to1_17_1.BlockEntityIds.getIds();
|
||||||
IDS = new int[Arrays.stream(ids).max().getAsInt() + 1];
|
IDS = new int[Arrays.stream(ids).max().getAsInt() + 1];
|
||||||
|
Arrays.fill(IDS, -1);
|
||||||
for (int i = 0; i < ids.length; i++) {
|
for (int i = 0; i < ids.length; i++) {
|
||||||
IDS[ids[i]] = i;
|
final int id = ids[i];
|
||||||
|
if (id != -1) {
|
||||||
|
IDS[id] = i;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,6 @@ rootProject.name = "viabackwards-parent"
|
|||||||
|
|
||||||
dependencyResolutionManagement {
|
dependencyResolutionManagement {
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
|
||||||
maven("https://repo.viaversion.com")
|
maven("https://repo.viaversion.com")
|
||||||
maven("https://papermc.io/repo/repository/maven-public/")
|
maven("https://papermc.io/repo/repository/maven-public/")
|
||||||
maven("https://oss.sonatype.org/content/repositories/snapshots/")
|
maven("https://oss.sonatype.org/content/repositories/snapshots/")
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren