mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-11-27 00:14:19 +00:00
fix: adapt minestom platform to 26_3 snapshot renames
This commit is contained in:
1 parent
64bb7c5c99
commit
6ddf039e49
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -21,6 +21,6 @@ public class MinestomBiomeLoader implements TypeLoader<PlatformBiome> {
|
||||
@Subst("name:value")
|
||||
String id = (String) o;
|
||||
Key key = Key.key(id);
|
||||
return new MinestomBiome(RegistryKey.unsafeOf(key));
|
||||
return new MinestomBiome(RegistryKey.of(key));
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -133,7 +133,7 @@ public record MinestomBlockState(Block block) implements BlockState {
|
||||
|
||||
@Override
|
||||
public boolean isAir() {
|
||||
return block.isAir();
|
||||
return block.air();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+2
-2
@@ -20,12 +20,12 @@ public class MinestomBlockType implements BlockType {
|
||||
|
||||
@Override
|
||||
public boolean isSolid() {
|
||||
return block.isSolid();
|
||||
return block.solid();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isWater() {
|
||||
return block.isLiquid();
|
||||
return block.liquid();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user