mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-27 04:25:12 +01:00
Flowerpot check for empty strings / return air
This commit is contained in:
parent
361c36349b
commit
df32569af6
@ -52,7 +52,10 @@ public class FlowerPotHandler implements BlockEntityProvider.BlockEntityHandler
|
||||
? new Pair<>(((Number) item).byteValue(), data)
|
||||
: new Pair<>((String) item, data);
|
||||
|
||||
if (flowers.containsKey(pair)) {
|
||||
// Return air on empty string
|
||||
if (item instanceof String && ((String) item).isEmpty())
|
||||
return 5265;
|
||||
else if (flowers.containsKey(pair)) {
|
||||
return flowers.get(pair);
|
||||
} else if (flowersNumberId.containsKey(pair)) {
|
||||
return flowersNumberId.get(pair);
|
||||
|
Loading…
Reference in New Issue
Block a user