Skip to content

Commit

Permalink
17 errors left
Browse files Browse the repository at this point in the history
  • Loading branch information
progwml6 committed Feb 3, 2014
1 parent 0fe91c2 commit 840e0ce
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion resources/TConstruct_at.cfg
Expand Up @@ -30,5 +30,5 @@ public net.minecraft.client.gui.GuiScreen field_146292_n #buttonList
public net.minecraft.client.renderer.ThreadDownloadImageData field_110559_g #field_110559_g
public net.minecraft.client.renderer.ThreadDownloadImageData field_110560_d #field_110560_d
public net.minecraft.potion.PotionEffect field_76460_b

public net.minecraft.world.gen.structure.StructureVillagePieces$Village #cant make village houses w/o this
# needs to have a space at the end of every line or SS will derp
4 changes: 2 additions & 2 deletions src/main/java/tconstruct/TConstruct.java
Expand Up @@ -115,7 +115,7 @@ public void preInit (FMLPreInitializationEvent event)
GameRegistry.registerWorldGenerator(new TBaseWorldGenerator(), 0);
MinecraftForge.TERRAIN_GEN_BUS.register(new TerrainGenEventHandler());
GameRegistry.registerFuelHandler(content);
GameRegistry.registerCraftingHandler(new TCraftingHandler());
//GameRegistry.registerCraftingHandler(new TCraftingHandler());
NetworkRegistry.INSTANCE.registerGuiHandler(instance, proxy);

if (PHConstruct.addToVillages)
Expand All @@ -141,7 +141,7 @@ public void preInit (FMLPreInitializationEvent event)
}

playerTracker = new TPlayerHandler();
GameRegistry.registerPlayerTracker(playerTracker);
//GameRegistry.registerPlayerTracker(playerTracker);
MinecraftForge.EVENT_BUS.register(playerTracker);

PluginController.getController().preInit();
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/tconstruct/entity/projectile/ArrowEntity.java
Expand Up @@ -5,6 +5,8 @@
import java.util.List;
import java.util.Random;

import tconstruct.TConstruct;
import tconstruct.util.network.packet.PacketPipeline;
import net.minecraft.block.Block;
import net.minecraft.crash.CrashReport;
import net.minecraft.crash.CrashReportCategory;
Expand Down Expand Up @@ -295,7 +297,7 @@ public void onUpdate ()
if (this.shootingEntity != null && movingobjectposition.entityHit != this.shootingEntity && movingobjectposition.entityHit instanceof EntityPlayer
&& this.shootingEntity instanceof EntityPlayerMP)
{
((EntityPlayerMP) this.shootingEntity).playerNetServerHandler.sendPacketToPlayer(new S2BPacketChangeGameState(6, 0));
TConstruct.packetPipeline.sendTo(new S2BPacketChangeGameState(6, 0), (EntityPlayerMP) this.shootingEntity);
}
}

Expand Down
23 changes: 12 additions & 11 deletions src/main/java/tconstruct/worldgen/village/ComponentSmeltery.java
Expand Up @@ -14,9 +14,9 @@
import net.minecraft.world.gen.structure.StructureBoundingBox;
import net.minecraft.world.gen.structure.StructureComponent;
import net.minecraft.world.gen.structure.StructureVillagePieces;
import net.minecraft.world.gen.structure.StructureVillagePieces.Start;

public class ComponentSmeltery extends StructureComponent
import net.minecraft.world.gen.structure.StructureVillagePieces.Start;
public class ComponentSmeltery extends StructureVillagePieces.House1
{
private int averageGroundLevel = -1;

Expand Down Expand Up @@ -79,7 +79,8 @@ public boolean addComponentParts (World world, Random random, StructureBoundingB
for (int i1 = 0; i1 < 9; ++i1)
{
this.clearCurrentPositionBlocksUpwards(world, i1, 9, l, sbb);
this.fillCurrentPositionBlocksDownwards(world, Blocks.stonebrick, 0, i1, -1, l, sbb);
//TODO fillCurrentPositionBlocksDownwards
this.func_151554_b(world, Blocks.stonebrick, 0, i1, -1, l, sbb);
}
}

Expand All @@ -88,7 +89,7 @@ public boolean addComponentParts (World world, Random random, StructureBoundingB
for (int i1 = 1; i1 < 8; ++i1)
{
this.clearCurrentPositionBlocksUpwards(world, i1, 9, l, sbb);
this.fillCurrentPositionBlocksDownwards(world, Blocks.stonebrick, 0, i1, -1, l, sbb);
this.func_151554_b(world, Blocks.stonebrick, 0, i1, -1, l, sbb);
}
}
return true;
Expand All @@ -112,14 +113,14 @@ int remapDirection (int direction)
return -1;
}

protected void fillWithMetaBlocks (World par1World, StructureBoundingBox par2StructureBoundingBox, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, int placeBlockID,
int placeBlockMeta, int replaceBlockID, int replaceBlockMeta, boolean alwaysReplace)
protected void fillWithMetaBlocks (World par1World, StructureBoundingBox par2StructureBoundingBox, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, Block placeBlockID,
int placeBlockMeta, Block replaceBlockID, int replaceBlockMeta, boolean alwaysReplace)
{
int i2 = this.getBiomeSpecificBlock(placeBlockID, placeBlockMeta);
int j2 = this.getBiomeSpecificBlockMetadata(placeBlockID, placeBlockMeta);
int k2 = this.getBiomeSpecificBlock(replaceBlockID, replaceBlockMeta);
int l2 = this.getBiomeSpecificBlockMetadata(replaceBlockID, replaceBlockMeta);
super.fillWithMetadataBlocks(par1World, par2StructureBoundingBox, minX, minY, minZ, maxX, maxY, maxZ, i2, j2, k2, l2, alwaysReplace);
Block i2 = this.func_151558_b(placeBlockID, placeBlockMeta);
int j2 = this.func_151557_c(placeBlockID, placeBlockMeta);
Block k2 = this.func_151558_b(replaceBlockID, replaceBlockMeta);
int l2 = this.func_151557_c(replaceBlockID, replaceBlockMeta);
super.func_151556_a(par1World, par2StructureBoundingBox, minX, minY, minZ, maxX, maxY, maxZ, i2, j2, k2, l2, alwaysReplace);
}

@Override
Expand Down
Expand Up @@ -18,7 +18,7 @@
import net.minecraft.world.gen.structure.MapGenStructureIO;


public class ComponentToolWorkshop extends StructureComponent
public class ComponentToolWorkshop extends StructureVillagePieces.House1
{
private int averageGroundLevel = -1;

Expand Down Expand Up @@ -144,7 +144,7 @@ public boolean addComponentParts (World world, Random random, StructureBoundingB
for (int i1 = 0; i1 < 9; ++i1)
{
this.clearCurrentPositionBlocksUpwards(world, i1, 9, l, sbb);
this.fillCurrentPositionBlocksDownwards(world, Blocks.cobblestone, 0, i1, -1, l, sbb);
this.func_151554_b(world, Blocks.cobblestone, 0, i1, -1, l, sbb);
}
}
this.spawnVillagers(world, sbb, 3, 1, 3, 1);
Expand Down

0 comments on commit 840e0ce

Please sign in to comment.