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

旗幟圖案重複與缺少圖案 #28

Open
miguotw opened this issue Nov 19, 2024 · 3 comments
Open

旗幟圖案重複與缺少圖案 #28

miguotw opened this issue Nov 19, 2024 · 3 comments

Comments

@miguotw
Copy link

miguotw commented Nov 19, 2024

錯誤回報

環境

  • 作業系統: amd64 (Linux)
  • Java 版本: 21.0.3+9-LTS
  • 伺服器版本: Leaf 1.21.1-DEV-ver/1.21.1@0fd4eb7
  • Minecraft 版本: 1.21.1
  • BannerMaker 版本: 2.5.0

預期行為

  • 「建立旗幟」介面能夠列出所有旗幟圖樣

實際行為

  • 如下圖所示,「右下方填滿」圖樣重複,且缺少「右上方填滿」
    新增版面1

重現步驟

  1. 使用 /bm 打開介面
  2. 選擇建立旗幟
  3. 選擇一個底色後進入選擇圖樣的介面
@jyhsu2000
Copy link
Owner

感謝回報
這是個很詭異的狀況😱

檢查後,確認程式碼並沒有寫錯

PatternType.DIAGONAL_RIGHT,
PatternType.DIAGONAL_UP_RIGHT,

確實分別是 PatternType.DIAGONAL_RIGHTPatternType.DIAGONAL_UP_RIGHT

稍微做了些實驗,發現...
在伺服器上 PatternType.DIAGONAL_RIGHT 居然會變成 PatternType.DIAGONAL_UP_RIGHT
並且兩者是相等的

image
image

感覺不是我能在這專案處理的
推測應該是伺服器核心那邊在 API 實作上的問題🤔

@miguotw
Copy link
Author

miguotw commented Nov 22, 2024

使用 spigot 最新構建仍可以複現這個狀況,好像也只能等待修復或是向上回報問題了

@MrApik
Copy link

MrApik commented Dec 17, 2024

https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse/src/main/java/org/bukkit/craftbukkit/legacy/FieldRename.java#63

Maybe that caused the issue? However I am too lazy to register there and post the issue according to their rules, sorry :D

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