[SPIGOT-4307] Can't set bannermeta to shield Created: 24/Aug/18  Updated: 26/Aug/18  Resolved: 26/Aug/18

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Vazgen Rshtuni Assignee: md_5
Resolution: Fixed Votes: 0
Labels: 1.13, bug, spigot

Version: 1.13v R0.1-SNAPSHOT (git-Spigot-fe3ab0d-3418f8d)
Guidelines Read: Yes

 Description   

Error code:
https://paste.md-5.net/fanuvavece.avrasm
Code:
https://paste.md-5.net/julavuqigi.avrasm
NPE at  "{{BannerMeta banner = (BannerMeta) bmeta.getBlockState();"
This code is from 1.12 plugin version. On this version all work perfectly}}



 Comments   
Comment by md_5 [ 26/Aug/18 ]

Yes, it was fixed in 1.13.1

Comment by Vazgen Rshtuni [ 26/Aug/18 ]

here is the correct code: https://paste.md-5.net/pusabixive.avrasm

still not work in 1.13

Comment by md_5 [ 26/Aug/18 ]

You're code does not work on 1.12.

It's casting to the wrong value, missing a set call...

Comment by Black Hole [ 24/Aug/18 ]

The tag "Base" is still a numeric id, which could be mapped to the right colored fake banner item.

Comment by md_5 [ 24/Aug/18 ]

Yeah the problem is that the API treats shields as banner blocks, but shields can't be blocks at all in 1.13.

Not sure what the best fix is.

Just fake shields as a white banner maybe?

Generated at Sat Dec 13 13:42:47 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.