fixed default detection for tiles
This commit is contained in:
parent
c08c1bc45a
commit
3c090c75f3
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ import java.lang.reflect.InvocationTargetException;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.BlockContainer;
|
import net.minecraft.block.ITileEntityProvider;
|
||||||
import net.minecraft.init.Blocks;
|
import net.minecraft.init.Blocks;
|
||||||
|
|
||||||
public class SchematicRegistry {
|
public class SchematicRegistry {
|
||||||
|
@ -39,7 +39,7 @@ public class SchematicRegistry {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!schematicClasses.containsKey(block)) {
|
if (!schematicClasses.containsKey(block)) {
|
||||||
if (block instanceof BlockContainer) {
|
if (block instanceof ITileEntityProvider) {
|
||||||
registerSchematicClass(block, SchematicTile.class);
|
registerSchematicClass(block, SchematicTile.class);
|
||||||
} else {
|
} else {
|
||||||
registerSchematicClass(block, SchematicBlock.class);
|
registerSchematicClass(block, SchematicBlock.class);
|
||||||
|
|
Loading…
Add table
Reference in a new issue