mirror of
https://github.com/architectury/architectury-api.git
synced 2026-04-02 13:37:43 -05:00
Fix NeoForge 21.0.40+ (#530)
This commit is contained in:
@@ -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!");
|
||||
}
|
||||
|
||||
|
||||
@@ -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!");
|
||||
}
|
||||
|
||||
|
||||
@@ -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!");
|
||||
}
|
||||
|
||||
|
||||
@@ -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!");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user