Skip to content

Conversation

kevinthegreat1
Copy link
Collaborator

Add chest value calculator.

@kevinthegreat1 kevinthegreat1 added new feature This issue or PR is a new feature reviews needed This PR needs reviews labels Nov 22, 2023
@kevinthegreat1 kevinthegreat1 added this to the 1.16 milestone Nov 22, 2023
@pigerstreet
Copy link

Yes please

Copy link

@pigerstreet pigerstreet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:)


public static void init() {
ScreenEvents.AFTER_INIT.register((client, screen, scaledWidth, scaledHeight) -> ScreenEvents.afterTick(screen).register(screen_ -> {
if (Utils.isOnSkyblock() && screen instanceof GenericContainerScreen genericContainerScreen && genericContainerScreen.getScreenHandler().getType() == ScreenHandlerType.GENERIC_9X6) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the genericContainerScreen.getScreenHandler().getType() == ScreenHandlerType.GENERIC_9X6 to the dungeon chest profit because otherwise the chest value doesn't work for single chests.

@AzureAaron AzureAaron added changes requested This PR need changes and removed reviews needed This PR needs reviews labels Nov 23, 2023
@kevinthegreat1 kevinthegreat1 added reviews needed This PR needs reviews and removed changes requested This PR need changes labels Nov 23, 2023
@AzureAaron AzureAaron added merge me please Pull requests that are ready to merge and removed reviews needed This PR needs reviews labels Nov 23, 2023
@kevinthegreat1 kevinthegreat1 merged commit ea8f0b1 into SkyblockerMod:master Nov 24, 2023
@kevinthegreat1 kevinthegreat1 deleted the chest-value branch November 24, 2023 20:00
@AzureAaron AzureAaron removed the merge me please Pull requests that are ready to merge label Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature This issue or PR is a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants