Patch PotionHelper to use registry delegates (#5142)

This commit is contained in:
Ben Staddon authored and tterrag committed 2019-01-11 18:32:17 -05:00
1 parent 51910fe83b
commit c1bb5cb250
3 files changed
+74 -1

No files matched your search

@@ -66,6 +66,15 @@ public class RegistryOverrideTest
);
}
@SubscribeEvent
public static void registerPotionTypes(RegistryEvent.Register<PotionType> event)
{
if (ENABLED)
{
event.getRegistry().register(new PotionType().setRegistryName("minecraft:awkward"));
}
}
private static class BlockReplacement extends Block
{
AxisAlignedBB BB = FULL_BLOCK_AABB.contract(0.1, 0, 0.1);