[Change] use latest WunderLib

This commit is contained in:
Frank 2023-09-12 12:48:33 +02:00
parent a38b57608b
commit ad071b2dd3
3 changed files with 5 additions and 5 deletions

View file

@ -33,7 +33,7 @@ public class UpdatesScreen extends BCLibLayoutScreen {
public UpdatesScreen(Screen parent) {
super(parent, Component.translatable("bclib.updates.title"), 10, 10, 10);
}
public static void showUpdateUI() {
if (!RenderSystem.isOnRenderThread()) {
RenderSystem.recordRenderCall(() -> Minecraft.getInstance()
@ -174,7 +174,7 @@ public class UpdatesScreen extends BCLibLayoutScreen {
}
@Override
protected void renderBackground(GuiGraphics guiGraphics, int i, int j, float f) {
protected void renderBackgroundLayer(GuiGraphics guiGraphics, int i, int j, float f) {
guiGraphics.fill(0, 0, width, height, 0xBD343444);
}
}

View file

@ -172,7 +172,7 @@ public class WelcomeScreen extends BCLibLayoutScreen {
}
@Override
protected void renderBackground(GuiGraphics guiGraphics, int i, int j, float f) {
protected void renderBackgroundLayer(GuiGraphics guiGraphics, int i, int j, float f) {
guiGraphics.fill(0, 0, width, height, 0xBD343444);
// Rectangle BANNER_UV = new Rectangle(0, 0, 427, 100);
// Size BANNER_RESOURCE_SIZE = BANNER_UV.size();

View file

@ -303,7 +303,7 @@ public class WorldSetupScreen extends LayoutScreen {
if (configuredPreset != null && configuredPreset.value() instanceof TogetherWorldPreset worldPreset) {
ResourceKey<WorldPreset> key = configuredPreset.unwrapKey().orElse(null);
if (key == null) key = worldPreset.parentKey;
acc.setWorldType(new WorldCreationUiState.WorldTypeEntry(Holder.direct(
worldPreset.withDimensions(
createWorldScreen
@ -412,7 +412,7 @@ public class WorldSetupScreen extends LayoutScreen {
}
@Override
protected void renderBackground(GuiGraphics guiGraphics, int i, int j, float f) {
protected void renderBackgroundLayer(GuiGraphics guiGraphics, int i, int j, float f) {
guiGraphics.fill(0, 0, width, height, 0xBD343444);
}