Skip to content

Commit

Permalink
More than 1 trade is nice to have..
Browse files Browse the repository at this point in the history
  • Loading branch information
GirafiStudios committed Feb 14, 2019
1 parent f298438 commit c4d5afd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Expand Up @@ -167,9 +167,7 @@ void destroyMultiblock(World world, BlockPos primaryPos, EnumFacing facing) {
BlockPos secondaryPos = primaryPos.offset(facing.rotateY());
IBlockState secondaryState = world.getBlockState(secondaryPos);
BlockPos dropPos = primaryPos;

//System.out.println("Destroy " + primaryPos);


if (primaryState.getBlock() == AtumBlocks.KILN) {
world.setBlockState(primaryPos, primaryState.withProperty(MULTIBLOCK_PRIMARY, false).withProperty(IS_BURNING, false));
}
Expand Down
Expand Up @@ -116,7 +116,7 @@ private void populateBuyingList() {
this.buyingList = new MerchantRecipeList();
}

List<EntityVillager.ITradeList> trades = Collections.singletonList(TRADES[10]);
List<EntityVillager.ITradeList> trades = Collections.singletonList(TRADES[rand.nextInt(TRADES.length - 1)]);

for (EntityVillager.ITradeList tradeList : trades) {
tradeList.addMerchantRecipe(this, this.buyingList, this.rand);
Expand Down

0 comments on commit c4d5afd

Please sign in to comment.