mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-12-02 02:44:33 +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")
|
@Subst("name:value")
|
||||||
String id = (String) o;
|
String id = (String) o;
|
||||||
Key key = Key.key(id);
|
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
|
@Override
|
||||||
public boolean isAir() {
|
public boolean isAir() {
|
||||||
return block.isAir();
|
return block.air();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
+2
-2
@@ -20,12 +20,12 @@ public class MinestomBlockType implements BlockType {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isSolid() {
|
public boolean isSolid() {
|
||||||
return block.isSolid();
|
return block.solid();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isWater() {
|
public boolean isWater() {
|
||||||
return block.isLiquid();
|
return block.liquid();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in new issue
Block a user