Skip to content

Commit

Permalink
Updated to 1.19.4
Browse files Browse the repository at this point in the history
  • Loading branch information
atiedebee committed May 31, 2023
1 parent 6a6783c commit 7165748
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 14 deletions.
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ org.gradle.parallel=true

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.19.3
yarn_mappings=1.19.3+build.5
loader_version=0.14.14
minecraft_version=1.19.4
yarn_mappings=1.19.4+build.2
loader_version=0.14.21

# Mod Properties
mod_version = 0.2.2-alpha
maven_group = me.atie.mod
archives_base_name = partial-keepinv

# Dependencies
fabric_version=0.74.0+1.19.3
fabric_version=0.83.0+1.19.4
crunch_version=1.1
modmenu_version=5.0.2
trinkets_version=3.5.0
modmenu_version=6.1.0
trinkets_version=3.6.0
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public void resize(MinecraftClient client, int width, int height) {
this.height = height;
heading.updateDimensions(width);
entries.updateDimensions(width);
footing.getButtonWidget().setPos(width - ParentSettingsScreen.widgetHeight- ParentSettingsScreen.sideMargin, height - ParentSettingsScreen.widgetHeight - ParentSettingsScreen.vertOptionMargin);
footing.getButtonWidget().setPosition(width - ParentSettingsScreen.widgetHeight- ParentSettingsScreen.sideMargin, height - ParentSettingsScreen.widgetHeight - ParentSettingsScreen.vertOptionMargin);
}

private void setEntryVisibility(KeepinvMode mode) {
Expand Down Expand Up @@ -273,7 +273,7 @@ public void resize(MinecraftClient client, int width, int height) {
this.height = height;
heading.updateDimensions(width);
options.updateDimensions(width);
footing.getButtonWidget().setPos(width - ParentSettingsScreen.widgetHeight- ParentSettingsScreen.sideMargin, height - ParentSettingsScreen.widgetHeight - ParentSettingsScreen.vertOptionMargin);
footing.getButtonWidget().setPosition(width - ParentSettingsScreen.widgetHeight- ParentSettingsScreen.sideMargin, height - ParentSettingsScreen.widgetHeight - ParentSettingsScreen.vertOptionMargin);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public SimpleText(TextRenderer textRenderer, Text text, int yPos) {
textWidgets = new TextWidget[lineCount];
for( int i = 0; i < lineCount; i++ ){
textWidgets[i] = new TextWidget(Text.literal(lines.get(i)), textRenderer);
textWidgets[i].setPos(ParentSettingsScreen.sideMargin, yPos);
textWidgets[i].setPosition(ParentSettingsScreen.sideMargin, yPos);
yPos += textRenderer.fontHeight + 2;
}
this.height = yPos - this.yPos;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void updateDimensions(int windowWidth) {
int width = windowWidth - 2 * ParentSettingsScreen.sideMargin;
int x = ParentSettingsScreen.sideMargin;

textWidget.setPos(x, yPos);
textWidget.setPosition(x, yPos);
textWidget.setWidth(width);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public void resize(MinecraftClient client, int width, int height) {
saveDropExpressionButton.updateDimensions(width);
saveDropExpressionButton.getButtonWidget().setX(xpDropExpressionTextField.getTextFieldWidget().getX() - 10 - saveDropExpressionButton.getButtonWidget().getWidth());

footing.getButtonWidget().setPos(width - ParentSettingsScreen.widgetHeight- ParentSettingsScreen.sideMargin, height - ParentSettingsScreen.widgetHeight - ParentSettingsScreen.vertOptionMargin);
footing.getButtonWidget().setPosition(width - ParentSettingsScreen.widgetHeight- ParentSettingsScreen.sideMargin, height - ParentSettingsScreen.widgetHeight - ParentSettingsScreen.vertOptionMargin);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientPlayNetworkHandler;
import net.minecraft.client.network.ServerInfo;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketByteBuf;
import net.minecraft.network.packet.Packet;

import static me.atie.partialKeepinventory.PartialKeepInventory.CONFIG;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import net.fabricmc.fabric.api.networking.v1.PacketSender;
import net.fabricmc.fabric.api.networking.v1.ServerPlayConnectionEvents;
import net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking;
import net.minecraft.network.Packet;
import net.minecraft.network.packet.Packet;
import net.minecraft.network.PacketByteBuf;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.network.ServerPlayNetworkHandler;
Expand All @@ -29,7 +29,6 @@ public class ServerListeners {
private static final HashSet<ServerPlayerEntity> pkiPlayers = new HashSet<>();

public static void init() {
// ServerPlayConnectionEvents.JOIN.register(ServerListeners::sendConfig);
ServerPlayConnectionEvents.DISCONNECT.register((handler, server) -> pkiPlayers.remove(handler.getPlayer()));

ServerPlayNetworking.registerGlobalReceiver(Identifiers.configUpdatePacket, ServerListeners::updateConfig);
Expand Down

0 comments on commit 7165748

Please sign in to comment.