port: Spring to Life (1.21.5)

- Still waiting for ObsidianUI to get the settings screen working. Guess I'm gonna have to port that myself again.
This commit is contained in:
Martin Prokoph
2025-03-27 16:10:03 +01:00
parent f004f0a32d
commit 38229bc827
20 changed files with 55 additions and 37 deletions

View File

@@ -91,7 +91,7 @@ public class InventoryUtil {
if (closestSlot.isPresent() && client.player != null) {
var slot = closestSlot.get().getLeft();
if (slot.hasStack() || !client.player.getInventory().getMainHandStack().isEmpty()) {
if (slot.hasStack() || !client.player.getInventory().getSelectedStack().isEmpty()) {
int slotCenterXScaled = guiLeft + slot.x + 8;
int slotCenterYScaled = guiTop + slot.y + 8;
int slotCenterX = (int) (slotCenterXScaled / ((double) client.getWindow().getScaledWidth() / (double) client.getWindow().getWidth()));