Clear firework item properly (#10793)
This commit is contained in:
@@ -527,7 +527,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
);
|
||||
|
||||
- private Color color = DEFAULT_LEATHER_COLOR;
|
||||
+ private Integer color; // Paper - keep color component consistent with vanilla (top bytes are ignored)
|
||||
+ private Integer color; // Paper - keep color component consistent with vanilla (top byte is ignored)
|
||||
|
||||
CraftMetaColorableArmor(CraftMetaItem meta) {
|
||||
super(meta);
|
||||
@@ -688,7 +688,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
|
||||
for (int color : colors) {
|
||||
- effect.withColor(Color.fromRGB(color));
|
||||
+ effect.withColor(Color.fromRGB(color & 0xFFFFFF)); // Paper - try to keep color component consistent with vanilla (top bytes are ignored), this will however change the color component for out of bound color
|
||||
+ effect.withColor(Color.fromRGB(color & 0xFFFFFF)); // Paper - try to keep color component consistent with vanilla (top byte is ignored), this will however change the color component for out of bound color
|
||||
}
|
||||
|
||||
for (int color : explosion.fadeColors()) {
|
||||
@@ -1113,7 +1113,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
static final ItemMetaKeyType<DyedItemColor> COLOR = new ItemMetaKeyType<>(DataComponents.DYED_COLOR, "color");
|
||||
|
||||
- private Color color = DEFAULT_LEATHER_COLOR;
|
||||
+ private Integer color; // Paper - keep color component consistent with vanilla (top bytes are ignored)
|
||||
+ private Integer color; // Paper - keep color component consistent with vanilla (top byte is ignored)
|
||||
|
||||
CraftMetaLeatherArmor(CraftMetaItem meta) {
|
||||
super(meta);
|
||||
@@ -1219,7 +1219,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
private Integer mapId;
|
||||
private byte scaling = CraftMetaMap.SCALING_EMPTY;
|
||||
- private Color color;
|
||||
+ private Integer color; // Paper - keep color component consistent with vanilla (top bytes are ignored)
|
||||
+ private Integer color; // Paper - keep color component consistent with vanilla (top byte is ignored)
|
||||
|
||||
CraftMetaMap(CraftMetaItem meta) {
|
||||
super(meta);
|
||||
@@ -1285,7 +1285,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
private PotionType type;
|
||||
private List<PotionEffect> customEffects;
|
||||
- private Color color;
|
||||
+ private Integer color; // Paper - keep color component consistent with vanilla (top bytes are ignored)
|
||||
+ private Integer color; // Paper - keep color component consistent with vanilla (top byte is ignored)
|
||||
|
||||
CraftMetaPotion(CraftMetaItem meta) {
|
||||
super(meta);
|
||||
|
||||
Reference in New Issue
Block a user