mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Patch PotionHelper to use registry delegates (#5142)
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user