Skip to content

Commit

Permalink
Fixed portal center drop (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulevsGitch committed Nov 4, 2022
1 parent a81c031 commit 566f52f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/paulevs/edenring/blocks/EdenPortalBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ public VoxelShape getShape(BlockState state, BlockGetter view, BlockPos pos, Col

@Override
public List<ItemStack> getDrops(BlockState state, LootContext.Builder builder) {
Block drop = state.getValue(EDEN_PORTAL) == EdenPortalState.PILLAR_TOP ? Blocks.AMETHYST_BLOCK : Blocks.WAXED_COPPER_BLOCK;
Block drop = Blocks.WAXED_COPPER_BLOCK;
if (state.getValue(EDEN_PORTAL) == EdenPortalState.PILLAR_TOP) drop = Blocks.AMETHYST_BLOCK;
else if (state.getValue(EDEN_PORTAL) == EdenPortalState.CENTER_MIDDLE) drop = Blocks.GOLD_BLOCK;
return Collections.singletonList(new ItemStack(drop));
}

Expand Down

0 comments on commit 566f52f

Please sign in to comment.