Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix items not being able to be placed on ancient altar #4094

Merged
merged 3 commits into from
Jan 16, 2024

Conversation

J3fftw1
Copy link
Contributor

@J3fftw1 J3fftw1 commented Jan 16, 2024

Description

This bug apparenttly has existed for 7 months.
On 1.19.4 you are not able to place items on an ancient altar you get the following error
https://pastebin.com/87UpB46w

Proposed changes

revert 060b59d

Related Issues (if applicable)

issue reported on discord
https://canary.discord.com/channels/565557184348422174/565569196218384385/1196756895948619797

Checklist

  • I have fully tested the proposed changes and promise that they will not break everything into chaos.
  • I have also tested the proposed changes in combination with various popular addons and can confirm my changes do not break them.
  • I have made sure that the proposed changes do not break compatibility across the supported Minecraft versions (1.16.* - 1.20.*).
  • I followed the existing code standards and didn't mess up the formatting.
  • I did my best to add documentation to any public classes or methods I added.
  • I have added Nonnull and Nullable annotations to my methods to indicate their behaviour for null values
  • I added sufficient Unit Tests to cover my code.

@J3fftw1 J3fftw1 requested a review from a team as a code owner January 16, 2024 10:32
@github-actions github-actions bot added the ✨ Fix This Pull Request fixes an issue. label Jan 16, 2024
Copy link
Contributor

Your Pull Request was automatically labelled as: "✨ Fix"
Thank you for contributing to this project! ❤️

Copy link
Contributor

github-actions bot commented Jan 16, 2024

Slimefun preview build

A Slimefun preview build is available for testing!
Commit: c77b405c

https://preview-builds.walshy.dev/download/Slimefun/4094/c77b405c

Note: This is not a supported build and is only here for the purposes of testing.
Do not run this on a live server and do not report bugs anywhere but this PR!

@WalshyDev
Copy link
Member

Let's version this, I'd rather not bring back flicker for 1.20 and all future versions.

armorStand.setRemoveWhenFarAway(false);
});
// 1.19 and below don't have the consumer method so flicker exists on these versions.
if (Slimefun.getMinecraftVersion().isBefore(MinecraftVersion.MINECRAFT_1_20)) {
Copy link
Member

Choose a reason for hiding this comment

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

I wish we had a isAtMost but we don't haha

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have isatleast

@JustAHuman-xD
Copy link
Contributor

I'm kinda confused I'll admit, I made this PR working in 1.19, I'm going to check Java docs some more cause I'm currently looking at some that say the method exists for spigot 1.19.1 at least

@JustAHuman-xD
Copy link
Contributor

Exists on 1.16.5 too, checked using: https://jd.andross.fr

Simply search "spawn(Location" and you'll find it

Copy link
Contributor

@JustAHuman-xD JustAHuman-xD left a comment

Choose a reason for hiding this comment

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

Approving for now till we figure out a way to deal with this, seems to be broken by a signature change

@WalshyDev
Copy link
Member

WalshyDev commented Jan 16, 2024

@WalshyDev WalshyDev merged commit 6bc1b1f into Slimefun:master Jan 16, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Fix This Pull Request fixes an issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants