mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fixup some registry tests, dummies are now persisted across syncing.
This commit is contained in:
1 parent
dee84dc1e4
commit
e805b12df8
8 files changed
+100
-37
No files matched your search
@@ -325,7 +325,14 @@ public class GameData
|
||||
@Override
|
||||
public Block createDummy(ResourceLocation key)
|
||||
{
|
||||
return new Block(Material.AIR).setUnlocalizedName("air").setRegistryName(key);
|
||||
return new BlockDummyAir().setUnlocalizedName("air").setRegistryName(key);
|
||||
}
|
||||
private static class BlockDummyAir extends Block //A named class so DummyBlockReplacementTest can detect if its a dummy
|
||||
{
|
||||
private BlockDummyAir()
|
||||
{
|
||||
super(Material.AIR);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user