mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Fix dummy air blocks not being marked as air (#9440)
This commit is contained in:
1 parent
b5655b0ddc
commit
d4836bc769
4 files changed
+19
-4
No files matched your search
@@ -489,9 +489,10 @@ public class GameData
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated(forRemoval = true, since = "1.19.4")
|
||||
public Block createDummy(ResourceLocation key)
|
||||
{
|
||||
Block ret = new BlockDummyAir(Block.Properties.of(Material.AIR));
|
||||
Block ret = new DummyAirBlock(Block.Properties.of(Material.AIR).noCollission().noLootTable().air());
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -514,9 +515,10 @@ public class GameData
|
||||
DebugLevelSource.initValidStates();
|
||||
}
|
||||
|
||||
private static class BlockDummyAir extends AirBlock //A named class so DummyBlockReplacementTest can detect if its a dummy
|
||||
@Deprecated(forRemoval = true, since = "1.19.4")
|
||||
private static class DummyAirBlock extends AirBlock
|
||||
{
|
||||
private BlockDummyAir(Block.Properties properties)
|
||||
private DummyAirBlock(Block.Properties properties)
|
||||
{
|
||||
super(properties);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user