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:
@@ -35,7 +35,7 @@ public class BlockCubeGenerator extends AEBaseBlock
|
||||
|
||||
public BlockCubeGenerator()
|
||||
{
|
||||
super( BlockCubeGenerator.class, Material.iron );
|
||||
super( Material.iron );
|
||||
this.setTileEntity( TileCubeGenerator.class );
|
||||
this.setFeature( EnumSet.of( AEFeature.UnsupportedDeveloperTools, AEFeature.Creative ) );
|
||||
}
|
||||
@@ -43,7 +43,6 @@ public class BlockCubeGenerator extends AEBaseBlock
|
||||
@Override
|
||||
public boolean onActivated( World w, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ )
|
||||
{
|
||||
|
||||
TileCubeGenerator tcg = this.getTileEntity( w, x, y, z );
|
||||
if( tcg != null )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user