Skip to content

Commit c2f14a6

Browse files
committed
Fix ClassNotDef Exception
1 parent 7366d08 commit c2f14a6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/micdoodle8/mods/galacticraft/core/blocks/BlockEnclosed.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,12 @@ public TileEntity createNewTileEntity(World world, int metadata)
388388
{
389389
if (CompatibilityManager.isAppEngLoaded())
390390
{
391-
return new TileCableBus();
391+
try {
392+
Class<?> cableBusClass = Class.forName("appeng.tile.networking.TileCableBus");
393+
return (TileEntity) cableBusClass.newInstance();
394+
}catch (Exception e){
395+
GalacticraftCore.logger.catching(e);
396+
}
392397
}
393398
} else if (metadata <= EnumEnclosedBlockType.ALUMINUM_WIRE.getMeta())
394399
{

0 commit comments

Comments
 (0)