fabric-1.19.3: fix compilation errors

This commit is contained in:
Kosma Moczek 2022-11-24 19:38:29 +01:00
parent c1fcfd15b6
commit 7a5440f32e
2 changed files with 4 additions and 2 deletions

View File

@ -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;
} }

View File

@ -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) {