mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-25 13:30:10 +00:00
use cast for ServerWorldMixin#getSeed
This commit is contained in:
1 parent
8cd31ead99
commit
7d2c2bb141
1 file changed
+1
-4
+1
-4
@@ -48,9 +48,6 @@ public abstract class ServerWorldMixin {
|
|||||||
@Final
|
@Final
|
||||||
private ServerChunkManager chunkManager;
|
private ServerChunkManager chunkManager;
|
||||||
|
|
||||||
@Shadow
|
|
||||||
public abstract long getSeed();
|
|
||||||
|
|
||||||
public Entity terra$spawnEntity(double x, double y, double z, EntityType entityType) {
|
public Entity terra$spawnEntity(double x, double y, double z, EntityType entityType) {
|
||||||
net.minecraft.entity.Entity entity = ((net.minecraft.entity.EntityType<?>) entityType).create(
|
net.minecraft.entity.Entity entity = ((net.minecraft.entity.EntityType<?>) entityType).create(
|
||||||
((net.minecraft.server.world.ServerWorld) (Object) this));
|
((net.minecraft.server.world.ServerWorld) (Object) this));
|
||||||
@@ -67,7 +64,7 @@ public abstract class ServerWorldMixin {
|
|||||||
|
|
||||||
@Intrinsic
|
@Intrinsic
|
||||||
public long terra$getSeed() {
|
public long terra$getSeed() {
|
||||||
return getSeed();
|
return ((net.minecraft.server.world.ServerWorld) (Object) this).getSeed();
|
||||||
}
|
}
|
||||||
|
|
||||||
public int terra$getMaxHeight() {
|
public int terra$getMaxHeight() {
|
||||||
|
|||||||
Reference in new issue
Block a user