mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-11 12:20:36 +08:00
Add tipped arrows support on 1.9/1.10
On a side note, need to investigate why the potion provider is only needed on 1.10 and below - I don't remember what changed in 1.11?
This commit is contained in:
parent
340baa9703
commit
3ef0f20b0d
@ -103,7 +103,7 @@ public class LegacyItemDbProvider extends ItemDbProvider {
|
||||
throw new Exception("Can't spawn entity ID " + metaData + " from spawn eggs.");
|
||||
}
|
||||
retval = getSpawnEggProvider().createEggItem(type);
|
||||
} else if (mat.name().endsWith("POTION")
|
||||
} else if ((mat.name().endsWith("POTION") || mat.name().equals("TIPPED_ARROW"))
|
||||
&& ReflUtil.getNmsVersionObject().isLowerThan(ReflUtil.V1_11_R1)) { // Only apply this to pre-1.11 as items.csv might only work in 1.11
|
||||
retval = getPotionMetaProvider().createPotionItem(mat, metaData);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user