Conversation
No changes appear to be necessary.
|
Paper 1.21.5 is functional. Still a bit to go on 1.21.4 (I got greedy when reducing duplicate code :( Might be a workaround, but might be more trouble than it's worth) so that means that all of the lower versions are also nonfunctional. Spigot 1.21.5 is not functional. It looks like one of the fields that makes working with the new armor contents a bit easier is a Paper construct. Unfortunately, the options for fixing it are a bunch more duplicate code (not to be confused with the automatically generated "duplicate" code from reobfuscation) or making changes to the currently functional Paper version and have to re-test. Paper also has loosened the access on some members I was eager to reuse, so I'll need to re-add some of the shadowed fields for that. |
Still not there, because Spigot doesn't expose Inventory.equipment, which is a huge problem for design.
|
Paper 1.21.5 appears functional still. Spigot is... messy. Everything except @Override
public void setHelmet(ItemStack helmet) {
setItem(getSize() - 2, helmet);
}This is how OpenInv did it on 1.21.4: Here's the same functionality using the new field Paper exposes: @Override
public void setHelmet(@Nullable ItemStack helmet) {
getInventory().getOwnerHandle().getInventory().equipment
.set(EquipmentSlot.HEAD, CraftItemStack.asNMSCopy(helmet));
}My reward for avoiding using magic values where possible, apparently. /e: I should mention that this particular area isn't the huge blocker - I'll probably just reroute it to the Bukkit version. The pain point is really that I'll have to figure out how to rework the slot implementations in the inventory layout. 1.21.4 support is almost there. For some reason opening your own inventory doesn't display your armor. I haven't taken a dive into what I messed up there, but it probably was simple. Either way, that's it for me for today. |
I should probably just give up on building Spigot out of Paper and update it separately next time, the differences are adding up.
|
Apologies, hitting another project crunch. Hopefully sanity will be restored by Friday. |
|
My personal recommendation is to drop spigot support for newer versions, since in 1.21.5 spigot isn't really used. Depends what is easier I suppose. Would also be a good opportunity to publish openinv on modern platforms like modrinth, curseforge and hangar (and earn ad revenue I suppose...) |
|
1.21.5 Paper and Spigot are both functional now. The blocker for release is that I messed up something with 1.21.4 which is causing armor slots to not display when opening own inventory, which means lower versions are also messed up. Unfortunately I have a project due tonight and cannot really devote time into looking into it before that is completed. Work before hobbies and all that. If you're on 1.21.5 already, you can just download the artifact from the most recent CI run of this branch and should be fine. If you're looking to migrate more slowly the way I usually try to support, unfortunately I'm not there yet. Appreciate the offer, not sure at this point what I want to do about Modrinth and Hangar. I think I made a project on at least one of them ages ago and then never progressed due to the newness and lack of support by tools. I will have to swap the Action I use for publishing them, and while I have looked at mc-publish for that, I don't really have the mental bandwidth to deal with the idea in this moment. Publishing is my least favorite part of the update process, which is why it's fully automated (and also why OI doesn't have a Spigot page, can't automate that without a lot of hackery). |
|
can we get a 1.21.5 paper jar to test? |
|
Every action run produces a jar in the dist artifact. |
Almost like naming all of these classes the same exact thing was a bad idea or something
As usual, I have not yet tested this, nor completed my entire update checklist.
#snapis the correct method for moving to spawn in previous versionsCloses #299