Skip to content

Commit

Permalink
stuff n things
Browse files Browse the repository at this point in the history
  • Loading branch information
NicosaurusRex99 committed Jan 6, 2020
1 parent 3dab949 commit d73b631
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,8 @@ public static BlockPattern getOrCreatePortalShape()
public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack)
{IBlockState iblockstate = worldIn.getBlockState(pos);
EntityPlayer player = (EntityPlayer)placer;
EnumHand hand = EnumHand.MAIN_HAND;
Random itemRand = worldIn.rand;

ItemStack itemstack = player.getHeldItem(hand);
if (!worldIn.isRemote)
{
worldIn.updateComparatorOutputLevel(pos, ModBlocks.arcanaPortalFrame);
Expand All @@ -144,12 +142,12 @@ public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, Enti
double d3 = 0.0D;
double d4 = 0.0D;
double d5 = 0.0D;
worldIn.spawnParticle(EnumParticleTypes.SMOKE_NORMAL, d0, d1, d2, 0.0D, 0.0D, 0.0D);
worldIn.spawnParticle(EnumParticleTypes.VILLAGER_ANGRY, d0, d1, d2, 0.0D, 0.0D, 0.0D);
}

worldIn.playSound((EntityPlayer)null, pos, SoundEvents.BLOCK_END_PORTAL_FRAME_FILL, SoundCategory.BLOCKS, 1.0F, 1.0F);
BlockPattern.PatternHelper blockpattern$patternhelper = this.getOrCreatePortalShape().match(worldIn, pos);

//TODO - Stop portal forming outside the frame
if (blockpattern$patternhelper != null)
{
BlockPos blockpos = blockpattern$patternhelper.getFrontTopLeft().add(-3, 0, -3);
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/divinerpg/utils/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ public static void addDevsToList() {
DEV_LIST.add("NicosaurusRex99");
DEV_LIST.add("LiteWolf101");
DEV_LIST.add("Dash");
DEV_LIST.add("Immortalis" //TODO - immortalis
);
DEV_LIST.add("Immortalis");
}
}

0 comments on commit d73b631

Please sign in to comment.