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

Error with 1.20.6 #1006

Closed
2 tasks done
SkytAsul opened this issue May 6, 2024 · 2 comments
Closed
2 tasks done

Error with 1.20.6 #1006

SkytAsul opened this issue May 6, 2024 · 2 comments

Comments

@SkytAsul
Copy link

SkytAsul commented May 6, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Are you using the latest version of MockBukkit?

  • I am using the latest version of MockBukkit.

Minecraft Version

1.20

Describe the bug

When mocking a server and a player on 1.20.6, this error happens:

java.lang.NoSuchFieldError: Class org.bukkit.attribute.Attribute does not have member field 'org.bukkit.attribute.Attribute HORSE_JUMP_STRENGTH'
	at be.seeseemelk.mockbukkit.attribute.AttributesMock.<clinit>(AttributesMock.java:27)
	at be.seeseemelk.mockbukkit.entity.LivingEntityMock.<init>(LivingEntityMock.java:119)
	at be.seeseemelk.mockbukkit.entity.HumanEntityMock.<init>(HumanEntityMock.java:74)
	at be.seeseemelk.mockbukkit.entity.PlayerMock.<init>(PlayerMock.java:220)
	at be.seeseemelk.mockbukkit.entity.PlayerMockFactory.createRandomPlayer(PlayerMockFactory.java:59)
	at be.seeseemelk.mockbukkit.ServerMock.addPlayer(ServerMock.java:343)

Reproducible Test

MockBukkit.mock().addPlayer();

With MockBukkit-v1.20:3.86.0

Anything else?

No response

@Insprill
Copy link
Contributor

Insprill commented May 6, 2024

1.20.5/6 is not supported yet.

@Thorinwasher
Copy link
Contributor

Fixed in #1008

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants