Fixes so server works

This commit is contained in:
Vincent Lee committed 2015-12-30 13:11:18 -06:00
1 parent b4300a9e3b
commit c2470f80ee
35 files changed
+167 -218

No files matched your search

@@ -48,14 +48,11 @@ import net.minecraftforge.fml.common.registry.GameRegistry;
public class BlockLightRelay extends BlockModContainer implements IWandable, ILexiconable {
public static TextureAtlasSprite worldIcon, worldIconRed;
protected BlockLightRelay() {
super(Material.glass);
float f = 5F / 16F;
setBlockBounds(f, f, f, 1F - f, 1F - f, 1F - f);
setUnlocalizedName(LibBlockNames.LIGHT_RELAY);
MinecraftForge.EVENT_BUS.register(this);
setDefaultState(blockState.getBaseState().withProperty(BotaniaStateProps.LUMINIZER_VARIANT, LuminizerVariant.DEFAULT).withProperty(BotaniaStateProps.POWERED, false));
}
@@ -82,13 +79,6 @@ public class BlockLightRelay extends BlockModContainer implements IWandable, ILe
return getDefaultState().withProperty(BotaniaStateProps.POWERED, powered).withProperty(BotaniaStateProps.LUMINIZER_VARIANT, meta == 1 ? LuminizerVariant.DETECTOR : LuminizerVariant.DEFAULT);
}
@SubscribeEvent
@SideOnly(Side.CLIENT)
public void onTextureStitch(TextureStitchEvent.Pre evt) {
worldIcon = IconHelper.forName(evt.map, "lightRelay1", "blocks");
worldIconRed = IconHelper.forName(evt.map, "lightRelay3", "blocks");
}
@Override
public Block setUnlocalizedName(String par1Str) {
register(par1Str);