Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, Enti
}
}

@Override
public int damageDropped(IBlockState state) {
return state.getValue(PUSH_PULL_TYPE) == PushPullType.PUSHER ? 0 : 1;
}

@Override
public void getSubBlocks(@Nonnull Item itemIn, CreativeTabs tab, List<ItemStack> list) {
list.add(new ItemStack(itemIn, 1, 0));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ public void init() {
};
}

@Override
public int damageDropped(IBlockState state) {
return 0;
}

@Nonnull
@Override
public IBlockState getActualState(@Nonnull IBlockState state, IBlockAccess worldIn, BlockPos pos) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ public BlockTeleport() {
this.setUnlocalizedName("funkylocomotion:teleporter");
}

@Override
public int damageDropped(IBlockState state) {
return 0;
}

@Override
public void getSubBlocks(@Nonnull Item itemIn, CreativeTabs tab, List<ItemStack> list) {
list.add(new ItemStack(itemIn, 1, 0));
Expand Down