Fix NeoForge 21.0.40+ (#530)

This commit is contained in:
Nico Mexis
2024-06-30 23:56:51 +02:00
committed by GitHub
parent 1ba751a168
commit 4e5f1eee9e
7 changed files with 9 additions and 9 deletions

View File

@@ -31,7 +31,7 @@ public class ArchitecturyLiquidBlock extends LiquidBlock {
}
private static <T> T checkPlatform(T obj) {
if (Platform.isForge()) {
if (Platform.isForgeLike()) {
throw new IllegalStateException("This class should've been replaced on Forge!");
}

View File

@@ -55,7 +55,7 @@ public abstract class ArchitecturyFlowingFluid extends FlowingFluid {
}
private static <T> T checkPlatform(T obj) {
if (Platform.isForge()) {
if (Platform.isForgeLike()) {
throw new IllegalStateException("This class should've been replaced on Forge!");
}

View File

@@ -32,7 +32,7 @@ public class ArchitecturyBucketItem extends BucketItem {
}
private static <T> T checkPlatform(T obj) {
if (Platform.isForge()) {
if (Platform.isForgeLike()) {
throw new IllegalStateException("This class should've been replaced on Forge!");
}

View File

@@ -33,7 +33,7 @@ public class ArchitecturyMobBucketItem extends MobBucketItem {
}
private static <T> T checkPlatform(T obj) {
if (Platform.isForge()) {
if (Platform.isForgeLike()) {
throw new IllegalStateException("This class should've been replaced on Forge!");
}