Removes the unneeded information about the current class in all blocks
Every Block had a call to its super, passing its own class. This can easily be simulated by calling `this.getClass()` in the super class. Also this was basically only used as using a name. In the future it might be advisable to not use such methods, since they are prone to refactoring.
This commit is contained in:
@@ -21,10 +21,10 @@ package appeng.core.features;
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
import com.google.common.base.Optional;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
import com.google.common.base.Optional;
|
||||
|
||||
import appeng.api.definitions.ITileDefinition;
|
||||
import appeng.block.AEBaseBlock;
|
||||
import appeng.core.CommonHelper;
|
||||
@@ -83,6 +83,11 @@ public final class AEBlockFeatureHandler implements IFeatureHandler
|
||||
// Bypass the forge magic with null to register our own itemblock later.
|
||||
GameRegistry.registerBlock( this.featured, null, registryName );
|
||||
GameRegistry.registerItem( this.definition.maybeItem().get(), registryName );
|
||||
|
||||
if( !this.featured.toString().equals( "BlockCableBus" ) )
|
||||
{
|
||||
GameRegistry.registerTileEntity( this.featured.getTileEntityClass(), this.featured.toString() );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user