Skip to content

Make it run on 26.1#388

Open
gaboss44 wants to merge 2 commits intoDecentSoftware-eu:mainfrom
gaboss44:fix/mc-26.1-fixes
Open

Make it run on 26.1#388
gaboss44 wants to merge 2 commits intoDecentSoftware-eu:mainfrom
gaboss44:fix/mc-26.1-fixes

Conversation

@gaboss44
Copy link
Copy Markdown

Now runs on 26.1 (I've tested it in Paper 26.1.1.build.29-alpha).

Changes:

  • send is used instead of sendPacket in nms/nms-v26_1/src/main/java/eu/decentsoftware/holograms/nms/v26_1/EntityPacketsBuilder.java
  • getKey is used instead of getKeyOrThrow in nms/nms-v26_1/src/main/java/eu/decentsoftware/holograms/nms/v26_1/EntityTypeRegistry.java
  • Version#getCurrentMinecraftVersion was modified to correctly detect version 26.1 and later (hopefully this won't affect earlier versions).

@DerMistkaefer
Copy link
Copy Markdown
Contributor

Looks good. Also update item-nbt-api to 2.15.7 to support 26.1

[23:01:01] [Server thread/WARN]: [NBTAPI] [NBTAPI] This Server-Version(26.1.1-R0.1-SNAPSHOT) is not supported by this NBT-API Version(2.15.5) located in DecentHolograms. The NBT-API will try to work as good as it can! Some functions may not work!                                                                
[23:01:01] [Server thread/WARN]: [DecentHolograms] NBT-API could not be loaded. Custom NBT in items may not work as expected.    

@DerMistkaefer
Copy link
Copy Markdown
Contributor

26.1.2 is failing. The version check should ignore the patch version.

[23:11:34 INFO]: [DecentHolograms] Enabling DecentHolograms v2.9.10
[23:11:34 ERROR]: [DecentHolograms] Unsupported server version detected: 26.1.2-DEV-8987f91 (MC: 26.1.2)
[23:11:34 ERROR]: [DecentHolograms] Plugin will now be disabled.                                                                                                                                                                                                                                                      
[23:11:34 INFO]: [DecentHolograms] Disabling DecentHolograms v2.9.10      

@Tsoccerguy3
Copy link
Copy Markdown

DecentHolograms-2.9.10.jar.zip

PR for testing using PR for xseries

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

Successfully merging this pull request may close these issues.

3 participants