mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-25 10:07:37 +01:00
fabric-1.19.3: fix compilation errors
This commit is contained in:
parent
c1fcfd15b6
commit
7a5440f32e
@ -14,6 +14,7 @@ import net.minecraft.block.Material;
|
|||||||
import net.minecraft.entity.player.PlayerEntity;
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.network.ClientConnection;
|
import net.minecraft.network.ClientConnection;
|
||||||
|
import net.minecraft.registry.Registries;
|
||||||
import net.minecraft.registry.Registry;
|
import net.minecraft.registry.Registry;
|
||||||
import net.minecraft.server.MinecraftServer;
|
import net.minecraft.server.MinecraftServer;
|
||||||
import net.minecraft.server.command.ServerCommandSource;
|
import net.minecraft.server.command.ServerCommandSource;
|
||||||
@ -149,7 +150,7 @@ public class DynmapPlugin {
|
|||||||
baseb = b;
|
baseb = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
Identifier ui = Registry.BLOCK.getId(b);
|
Identifier ui = Registries.BLOCK.getId(b);
|
||||||
if (ui == null) {
|
if (ui == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ import net.minecraft.block.Block;
|
|||||||
import net.minecraft.block.BlockState;
|
import net.minecraft.block.BlockState;
|
||||||
import net.minecraft.network.message.MessageType;
|
import net.minecraft.network.message.MessageType;
|
||||||
import net.minecraft.registry.Registry;
|
import net.minecraft.registry.Registry;
|
||||||
|
import net.minecraft.registry.RegistryKeys;
|
||||||
import net.minecraft.server.BannedIpList;
|
import net.minecraft.server.BannedIpList;
|
||||||
import net.minecraft.server.BannedPlayerList;
|
import net.minecraft.server.BannedPlayerList;
|
||||||
import net.minecraft.server.MinecraftServer;
|
import net.minecraft.server.MinecraftServer;
|
||||||
@ -60,7 +61,7 @@ public class FabricServer extends DynmapServerInterface {
|
|||||||
public FabricServer(DynmapPlugin plugin, MinecraftServer server) {
|
public FabricServer(DynmapPlugin plugin, MinecraftServer server) {
|
||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
this.server = server;
|
this.server = server;
|
||||||
this.biomeRegistry = server.getRegistryManager().get(Registry.BIOME_KEY);
|
this.biomeRegistry = server.getRegistryManager().get(RegistryKeys.BIOME);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Optional<GameProfile> getProfileByName(String player) {
|
private Optional<GameProfile> getProfileByName(String player) {
|
||||||
|
Loading…
Reference in New Issue
Block a user