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:
md678685 2018-08-15 19:42:12 +01:00
parent 340baa9703
commit 3ef0f20b0d

View File

@ -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 {